coder: syntax error

This commit is contained in:
Jurn Wubben 2025-08-21 23:42:57 +02:00
parent 62c041bb32
commit 860ebb0fdd

View file

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