nixos/nextcloud-notify_push: automatically install notify_push nextcloud app (#451501)

This commit is contained in:
Sandro
2025-10-13 11:42:31 +00:00
committed by GitHub

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,17 @@ in
proxy_buffering off; proxy_buffering off;
''; '';
}; };
} nextcloud = {
extraApps = {
(lib.mkIf cfg.bendDomainToLocalhost { inherit (config.services.nextcloud.package.packages.apps)
nextcloud.settings.trusted_proxies = [ notify_push
;
};
settings.trusted_proxies = lib.mkIf cfg.bendDomainToLocalhost [
"127.0.0.1" "127.0.0.1"
"::1" "::1"
]; ];
}) };
]; };
}; };
} }