diff options
| author | Linnea Gräf <nea@nea.moe> | 2024-12-13 02:38:39 +0100 |
|---|---|---|
| committer | Linnea Gräf <nea@nea.moe> | 2024-12-13 02:38:39 +0100 |
| commit | da32d98ef63a51c466f6b74d2ba777182493dcb8 (patch) | |
| tree | 6fba5d65af81335bf25705c0676814cd77fae35f /modules | |
| parent | 9f5acfd0f7bda5d9de15d3eca01c7d2f1eafc52e (diff) | |
| download | nix-infra-da32d98ef63a51c466f6b74d2ba777182493dcb8.tar.gz nix-infra-da32d98ef63a51c466f6b74d2ba777182493dcb8.tar.bz2 nix-infra-da32d98ef63a51c466f6b74d2ba777182493dcb8.zip | |
fix module errors with caddy
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/caddy.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/caddy.nix b/modules/caddy.nix index b8711c6..c19248c 100644 --- a/modules/caddy.nix +++ b/modules/caddy.nix @@ -19,9 +19,11 @@ in reverseProxy = mkOption { type = types.attrsOf ( types.submodule { - port = mkOption { - type = int; - description = "The local port of the reverse proxied service"; + options = { + port = mkOption { + type = types.int; + description = "The local port of the reverse proxied service"; + }; }; } ); @@ -39,7 +41,7 @@ in name: value: attrsets.nameValuePair (name + "." + cfg.baseUrl) { extraConfig = '' - reverse_proxy http://localhost:${value.port}/ + reverse_proxy http://localhost:${toString value.port}/ ''; } ) cfg.reverseProxy; |
