diff --git a/hosts/architect/options.nix b/hosts/architect/options.nix index 90642d3..6138eb8 100644 --- a/hosts/architect/options.nix +++ b/hosts/architect/options.nix @@ -91,6 +91,12 @@ in default = false; }; + host = mkOption { + type = types.str; + description = "The host for the location."; + default = "127.0.0.1"; + }; + port = mkOption { type = types.int; description = "The port number for the location."; @@ -126,7 +132,7 @@ in enableACME = true; locations = mapAttrs (path: location: { - proxyPass = "http://127.0.0.1:${toString location.port}"; + proxyPass = "http://${location.host}:${toString location.port}"; proxyWebsockets = location.proxyWebsockets; extraConfig = '' ${optionalString location.allowLan "deny 10.0.0.1;"}