diff --git a/hosts/architect/options.nix b/hosts/architect/options.nix index 6138eb8..82c0235 100644 --- a/hosts/architect/options.nix +++ b/hosts/architect/options.nix @@ -101,12 +101,17 @@ in type = types.int; description = "The port number for the location."; }; - + allow = mkOption { type = types.listOf types.str; default = [ ]; description = "IP address or CIDR block to allow."; }; + + path = mkOption { + type = types.str; + default = ""; + }; deny = mkOption { type = types.listOf types.str; @@ -132,7 +137,7 @@ in enableACME = true; locations = mapAttrs (path: location: { - proxyPass = "http://${location.host}:${toString location.port}"; + proxyPass = "http://${location.host}:${toString location.port}${location.path}"; proxyWebsockets = location.proxyWebsockets; extraConfig = '' ${optionalString location.allowLan "deny 10.0.0.1;"}