Nextcloud secrets file

This commit is contained in:
pazpi 2025-08-20 23:42:06 +02:00
parent 8fe42ead92
commit 0d168690db
4 changed files with 27 additions and 2 deletions

View file

@ -20,6 +20,14 @@ in
'';
};
secretFile = lib.mkOption {
default = "";
type = lib.types.str;
description = ''
Path to the file containing extra secrets for Nextcloud
'';
};
proxy = {
enable = lib.mkEnableOption "Set the proxy entry for this service";
@ -70,12 +78,21 @@ in
https = true;
nginx.recommendedHttpHeaders = true;
secretFile = cfg.secretFile;
settings = {
overwriteProtocol = "https";
defaultPhoneRegion = "IT";
overwriteprotocol = "https";
default_phone_region = "IT";
trusted_proxies = [ "192.168.1.150" ];
trusted_domains = [ "cloud.${cfg.proxy.domain}" ];
maintenance_window_start = 1;
mail_smtpmode = "smtp";
mail_sendmailmode = "smtp";
mail_from_address = "cloud";
mail_domain = cfg.proxy.domain;
mail_smtphost = "smtp.tem.scaleway.com";
mail_smtpport = 465;
mail_smtpauth = "true";
enabledPreviewProviders = [
"OC\\Preview\\BMP"
"OC\\Preview\\GIF"