From 38644cc57f30a6ba071ce998db30043b54a5d2f0 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Sun, 17 Nov 2024 20:31:13 +0000 Subject: [PATCH] feat(architect/options.nix): add recommendedProxySettings option - Introduced `recommendedProxySettings` to force the use of recommended proxy configuration. - Updated location configuration to include `recommendedProxySettings`. --- hosts/architect/options.nix | 7 +++++++ 1 file changed, 7 insertions(+) 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};''}