diff --git a/system/server/coder.nix b/system/server/coder.nix index 46535b0..5ee35a9 100644 --- a/system/server/coder.nix +++ b/system/server/coder.nix @@ -7,16 +7,17 @@ inherit (config.niksos) server; port = 9005; host = "coder.jsw.tf"; + sPort = builtins.toString port; httpsHost = "https://" + host; in { config = lib.mkIf server { services = { caddy.virtualHosts."${host}".extraConfig = '' - reverse_proxy :${port} + reverse_proxy :${sPort} ''; coder = { enable = true; - listenAddress = "127.0.0.1:${port}"; + listenAddress = "127.0.0.1:${sPort}"; wildcardAccessUrl = "*.${host}"; accessUrl = httpsHost; environment = {