diff --git a/hosts/dnsc-server/default.nix b/hosts/dnsc-server/default.nix index 7771054..88c6f06 100644 --- a/hosts/dnsc-server/default.nix +++ b/hosts/dnsc-server/default.nix @@ -129,6 +129,28 @@ trim.enable = true; }; + # Caddy + services.caddy = { + enable = true; + virtualHosts."media.lan".extraConfig = '' + reverse_proxy localhost:8096 + tls internal + ''; + virtualHosts."stash.lan".extraConfig = '' + reverse_proxy localhost:9069 + tls internal + ''; + virtualHosts."finance.lan".extraConfig = '' + encode gzip zstd + reverse_proxy localhost:9002 + tls internal + ''; + virtualHosts."photos.lan".extraConfig = '' + reverse_proxy localhost:9003 + tls internal + ''; + }; + # Environment variables environment.variables.EDITOR = "nvim";