Fixed home-assistant 400: bad request. Fixed Nextcloud-Quirk failing. Fixed Nextcloud-Onlyoffice mkdir: permission denied.
This commit is contained in:
@@ -83,8 +83,8 @@ helper.mkPodmanService {
|
||||
};
|
||||
|
||||
extraConfig = {
|
||||
systemd.services."${name}-quirk-1" = {
|
||||
description = "Podman container quirk 1 : ${name}";
|
||||
systemd.services."${name}-quirk" = {
|
||||
description = "Podman container quirk : ${name}";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "${name}.service" ];
|
||||
onFailure = [ "service-failure-notify@%n.service" ];
|
||||
@@ -114,7 +114,7 @@ helper.mkPodmanService {
|
||||
|
||||
http:
|
||||
use_x_forwarded_for: true
|
||||
trusted_proxies: ${config.numbus.networking.ipAddress}/24
|
||||
trusted_proxies: 10.89.0.0/16
|
||||
|
||||
zha:
|
||||
EOF
|
||||
@@ -123,11 +123,11 @@ EOF
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services."${name}-quirk-2" = {
|
||||
description = "Podman container quirk 2 : ${name}";
|
||||
wantedBy = [ "multi-user.target" "${name}.service" ];
|
||||
after = [ "${name}-secrets.service" ];
|
||||
before = [ "${name}.service" "${name}-permissions.service" ];
|
||||
systemd.services."mqtt-quirk" = {
|
||||
description = "Podman container quirk : Home-assistant MQTT";
|
||||
wantedBy = [ "multi-user.target" "mqtt.service" ];
|
||||
after = [ "mqtt-secrets.service" ];
|
||||
before = [ "mqtt.service" "mqtt-permissions.service" ];
|
||||
onFailure = [ "service-failure-notify@%n.service" ];
|
||||
startLimitBurst = 5;
|
||||
startLimitIntervalSec = 600;
|
||||
@@ -157,7 +157,7 @@ listener 1883
|
||||
allow_anonymous false
|
||||
password_file /mosquitto/password.txt
|
||||
EOF
|
||||
source /var/lib/numbus-server/${name}/.env
|
||||
source /var/lib/numbus-server/mqtt/.env
|
||||
mosquitto_passwd -b ${cfg.configDir}/mqtt/password.txt "$HOME_ASSISTANT_MQTT_USER" "$HOME_ASSISTANT_MQTT_PASSWORD"
|
||||
chmod 600 ${cfg.configDir}/mqtt/password.txt
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user