From 860ebb0fdd1d714d49ca439ba1572ace993a6ded Mon Sep 17 00:00:00 2001 From: Jurn Wubben Date: Thu, 21 Aug 2025 23:42:57 +0200 Subject: [PATCH] coder: syntax error --- system/server/coder.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 = {