diff --git a/hosts/Anton/caddy.nix b/hosts/Anton/caddy.nix index 7c62b78..30ded7c 100644 --- a/hosts/Anton/caddy.nix +++ b/hosts/Anton/caddy.nix @@ -3,20 +3,18 @@ services.caddy = { enable = true; - virtualHosts = { - "https://git.huwe.mooo.com" = { - extraConfig = "reverse_proxy localhost:3000"; - }; - "https://files.huwe.mooo.com" = { - extraConfig = '' - root * /var/www/file_server - file_server + configFile = pkgs.writeText "Caddyfile" '' +https://git.huwe.mooo.com { + reverse_proxy localhost:3000 +} - ''; - }; - "https://cal.huwe.mooo.com" = { - extraConfig = "reverse_proxy localhost:5232"; - }; - }; +https://files.huwe.mooo.com { + reverse_proxy localhost:444 +} + +https://cal.huwe.mooo.com { + reverse_proxy localhost:5232 +} +''; }; }