nixos/nextcloud-notify_push: automatically install notify_push nextcloud app (#451501)
This commit is contained in:
@@ -159,27 +159,29 @@ in
|
||||
"::1" = [ cfgN.hostName ];
|
||||
};
|
||||
|
||||
services = lib.mkMerge [
|
||||
{
|
||||
nginx.virtualHosts.${cfgN.hostName}.locations."^~ /push/" = {
|
||||
proxyPass = "http://unix:${cfg.socketPath}";
|
||||
proxyWebsockets = true;
|
||||
recommendedProxySettings = lib.mkDefault true;
|
||||
extraConfig = # nginx
|
||||
''
|
||||
# disable in case it was configured on a higher level
|
||||
keepalive_timeout 0;
|
||||
proxy_buffering off;
|
||||
'';
|
||||
services = {
|
||||
nginx.virtualHosts.${cfgN.hostName}.locations."^~ /push/" = {
|
||||
proxyPass = "http://unix:${cfg.socketPath}";
|
||||
proxyWebsockets = true;
|
||||
recommendedProxySettings = lib.mkDefault true;
|
||||
extraConfig = # nginx
|
||||
''
|
||||
# disable in case it was configured on a higher level
|
||||
keepalive_timeout 0;
|
||||
proxy_buffering off;
|
||||
'';
|
||||
};
|
||||
nextcloud = {
|
||||
extraApps = {
|
||||
inherit (config.services.nextcloud.package.packages.apps)
|
||||
notify_push
|
||||
;
|
||||
};
|
||||
}
|
||||
|
||||
(lib.mkIf cfg.bendDomainToLocalhost {
|
||||
nextcloud.settings.trusted_proxies = [
|
||||
settings.trusted_proxies = lib.mkIf cfg.bendDomainToLocalhost [
|
||||
"127.0.0.1"
|
||||
"::1"
|
||||
];
|
||||
})
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user