nextcloud nginx logic needs to exists in two place

This commit is contained in:
Danilo Reyes
2026-02-05 06:04:42 -06:00
parent 08cc3379ad
commit 4ba0fa0dd5

View File

@@ -163,6 +163,21 @@ in
all.bz2
];
};
nginx.virtualHosts.${cfg.host} = {
forceSSL = false;
enableACME = false;
http2 = false;
listen = [
{
addr = config.my.ips.wg-server;
port = 8081;
}
{
addr = config.my.localhost;
port = 8081;
}
];
};
};
virtualisation.oci-containers.containers = {
go-vod = lib.mkIf config.my.servers.go-vod.enable {
@@ -239,22 +254,10 @@ in
my.servers.nextcloud.useDefaultProxy = false;
services.nginx.virtualHosts = {
"${cfg.host}" = {
forceSSL = false; # vps
enableACME = false; # vps
http2 = false; # vps
default = true; # vps
#vps
listen = [
{
addr = config.my.ips.wg-server;
port = 8081;
}
{
addr = config.my.localhost;
port = 8081;
}
];
#vps
forceSSL = true;
enableACME = true;
http2 = true;
default = true;
serverAliases = [ "cloud.rotehaare.art" ];
extraConfig = ''
add_header X-XSS-Protection "1; mode=block" always;