diff --git a/hosts/architect/options.nix b/hosts/architect/options.nix index 2540217..88b0598 100644 --- a/hosts/architect/options.nix +++ b/hosts/architect/options.nix @@ -101,6 +101,12 @@ with lib; default = ""; }; + recommendedProxySettings = mkOption { + type = types.bool; + default = true; + description = "Force the use of recommended proxy configuration."; + }; + allowWAN = mkOption { type = types.bool; default = false; @@ -128,6 +134,7 @@ with lib; (path: location: { proxyPass = "http://${location.host}:${toString location.port}${location.path}"; proxyWebsockets = location.proxyWebsockets; + recommendedProxySettings = location.recommendedProxySettings; extraConfig = '' ${concatMapStringsSep "\n" (allowCIDR: "allow ${allowCIDR};") location.allow} ${optionalString location.allowLan ''allow ${config.architect.networks."lan".net};''}