Nextcloud secrets file
This commit is contained in:
parent
8fe42ead92
commit
0d168690db
4 changed files with 27 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue