nixos/nginx: allow recommended proxy settings to be enabled per location

This commit is contained in:
Winter
2022-06-08 22:28:41 -04:00
parent e3aa43fd23
commit 6c53004840
3 changed files with 13 additions and 4 deletions

View File

@@ -3,7 +3,7 @@
# has additional options that affect the web server as a whole, like
# the user/group to run under.)
{ lib }:
{ lib, config }:
with lib;
@@ -128,5 +128,14 @@ with lib;
a greater priority.
'';
};
recommendedProxySettings = mkOption {
type = types.bool;
default = config.services.nginx.recommendedProxySettings;
defaultText = literalExpression "config.services.nginx.recommendedProxySettings";
description = ''
Enable recommended proxy settings.
'';
};
};
}