fix: build custom caddy

This commit is contained in:
= 2025-01-19 17:56:26 +01:00
parent 9812a631fc
commit e754d926eb
4 changed files with 18 additions and 31 deletions

View file

@ -32,7 +32,7 @@ in
};
subdomain = lib.mkOption {
default = "nextcloud";
default = "cloud";
type = lib.types.str;
description = ''
The subdomain where Nextcloud is reachable
@ -51,7 +51,7 @@ in
default = "localhost";
type = lib.types.str;
description = ''
host name where the download manager stack is running
host name where nextcloud is running
'';
};
@ -74,10 +74,7 @@ in
overwriteProtocol = "https";
defaultPhoneRegion = "IT";
trusted_proxies = [ "192.168.1.150" ];
trusted_domains = [
"cloud.${cfg.proxy.domain}"
"nextcloud.internal"
];
trusted_domains = [ "cloud.${cfg.proxy.domain}" ];
maintenance_window_start = 1;
enabledPreviewProviders = [
"OC\\Preview\\BMP"
@ -152,13 +149,6 @@ in
# hostname = "office.${cfg.proxy.domain}";
};
nginx.virtualHosts = {
${config.services.nextcloud.hostName} = {
forceSSL = false;
enableACME = false;
};
};
};
networking.firewall.allowedTCPPorts = [