nixos/nextcloud: added trusted_proxies setting (#77480)
This commit is contained in:
parent
526aec7ba7
commit
4e6e94417c
@ -229,6 +229,15 @@ in {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
trustedProxies = mkOption {
|
||||||
|
type = types.listOf types.str;
|
||||||
|
default = [];
|
||||||
|
description = ''
|
||||||
|
Trusted proxies, to provide if the nextcloud installation is being
|
||||||
|
proxied to secure against e.g. spoofing.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
overwriteProtocol = mkOption {
|
overwriteProtocol = mkOption {
|
||||||
type = types.nullOr (types.enum [ "http" "https" ]);
|
type = types.nullOr (types.enum [ "http" "https" ]);
|
||||||
default = null;
|
default = null;
|
||||||
@ -352,6 +361,7 @@ in {
|
|||||||
${optionalString (c.dbpassFile != null) "'dbpassword' => nix_read_pwd(),"}
|
${optionalString (c.dbpassFile != null) "'dbpassword' => nix_read_pwd(),"}
|
||||||
'dbtype' => '${c.dbtype}',
|
'dbtype' => '${c.dbtype}',
|
||||||
'trusted_domains' => ${writePhpArrary ([ cfg.hostName ] ++ c.extraTrustedDomains)},
|
'trusted_domains' => ${writePhpArrary ([ cfg.hostName ] ++ c.extraTrustedDomains)},
|
||||||
|
'trusted_proxies' => ${writePhpArrary (c.trustedProxies)},
|
||||||
];
|
];
|
||||||
'';
|
'';
|
||||||
occInstallCmd = let
|
occInstallCmd = let
|
||||||
|
Loading…
x
Reference in New Issue
Block a user