fix: build custom caddy
This commit is contained in:
parent
9812a631fc
commit
e754d926eb
4 changed files with 18 additions and 31 deletions
|
|
@ -96,7 +96,7 @@ in
|
|||
version = "7c818ab3fc3485a72a346f85c77810725f19f9cf";
|
||||
}
|
||||
];
|
||||
vendorHash = "sha256-AWKokxGG2iCouhet5cPiKTuL9g9RQihkBRReU1nw9jc=";
|
||||
vendorHash = "sha256-vkJw/92zXt5S2eUxRSjtwn1nqU/f+WHPEG8AD4Z342I=";
|
||||
};
|
||||
|
||||
globalConfig =
|
||||
|
|
|
|||
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue