From cacb3421177f05f6c98004dcf5ddf6b2c09e4c7a Mon Sep 17 00:00:00 2001 From: blake Date: Sun, 12 Oct 2025 11:36:56 -0500 Subject: [PATCH] 344 current 2025-10-12 10:51:52 25.05.20251006.20c4598 6.12.50 * --- flake.nix | 2 +- hosts/snowbelle/configuration.nix | 3 ++- modules/homelab/services/arr/sonarr/default.nix | 7 +++++++ modules/homelab/services/default.nix | 1 + 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 0c5fddd..399f29e 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,6 @@ # flake for blakes nixos config # define new devices in outputs -# generation: 343 current 2025-10-12 10:50:02 25.05.20251006.20c4598 6.12.50 * +# generation: 344 current 2025-10-12 10:51:52 25.05.20251006.20c4598 6.12.50 * { description = "blakes nix config"; inputs = { diff --git a/hosts/snowbelle/configuration.nix b/hosts/snowbelle/configuration.nix index e310b15..db2f8e9 100644 --- a/hosts/snowbelle/configuration.nix +++ b/hosts/snowbelle/configuration.nix @@ -30,7 +30,8 @@ in zfs.enable = true; smb.enable = true; nfs.enable = true; - nginx-proxy.enable = true; + nginx-proxy.enable = false; + caddy.enable = true; }; services = { jellyfin.enable = true; diff --git a/modules/homelab/services/arr/sonarr/default.nix b/modules/homelab/services/arr/sonarr/default.nix index 4fee033..4894db8 100644 --- a/modules/homelab/services/arr/sonarr/default.nix +++ b/modules/homelab/services/arr/sonarr/default.nix @@ -84,6 +84,13 @@ in }; }; + services.caddy.virtualHosts."${cfg.url}" = { + extraConfig = '' + tls ${sec."ssl_blakedheld_crt".path} ${sec."ssl_blakedheld_key".path} + reverse_proxy http://127.0.0.1:${toString cfg.port} + ''; + }; + # add to glance modules.services.glance.links.mediastack = [{ title = service; diff --git a/modules/homelab/services/default.nix b/modules/homelab/services/default.nix index 3be6571..98b0b66 100644 --- a/modules/homelab/services/default.nix +++ b/modules/homelab/services/default.nix @@ -18,6 +18,7 @@ ./qbittorrent ./jellyfin ./nginx-proxy + ./caddy ./arr/flaresolverr ./home/mosquitto ./uptime-kuma