From a51a84d7cffb248db14a48842f754a4542a038c0 Mon Sep 17 00:00:00 2001 From: Dennis Date: Thu, 29 Jan 2026 12:12:15 +0100 Subject: [PATCH] adds caddy to home server --- hosts/dnsc-server/default.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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";