nixos/nextcloud-notify_push: remove not required mkMerge

This commit is contained in:
Marcel
2025-10-13 13:34:33 +02:00
committed by Sandro Jäckel
parent 0b4defa258
commit 2f00e84a4b

View File

@@ -159,8 +159,7 @@ in
"::1" = [ cfgN.hostName ]; "::1" = [ cfgN.hostName ];
}; };
services = lib.mkMerge [ services = {
{
nginx.virtualHosts.${cfgN.hostName}.locations."^~ /push/" = { nginx.virtualHosts.${cfgN.hostName}.locations."^~ /push/" = {
proxyPass = "http://unix:${cfg.socketPath}"; proxyPass = "http://unix:${cfg.socketPath}";
proxyWebsockets = true; proxyWebsockets = true;
@@ -172,14 +171,12 @@ in
proxy_buffering off; proxy_buffering off;
''; '';
}; };
} nextcloud = {
settings.trusted_proxies = lib.mkIf cfg.bendDomainToLocalhost [
(lib.mkIf cfg.bendDomainToLocalhost {
nextcloud.settings.trusted_proxies = [
"127.0.0.1" "127.0.0.1"
"::1" "::1"
]; ];
}) };
]; };
}; };
} }