From 706e789ce03e090d291dcebbbb2687a0752156e1 Mon Sep 17 00:00:00 2001 From: Satria Date: Tue, 24 Mar 2026 08:55:29 +0700 Subject: [PATCH] move to dynamic config --- modules/system/homelab/proxy.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/system/homelab/proxy.nix b/modules/system/homelab/proxy.nix index 0486260..10a6a32 100644 --- a/modules/system/homelab/proxy.nix +++ b/modules/system/homelab/proxy.nix @@ -96,6 +96,9 @@ in { }; traefik = { enable = true; + dynamicConfigOptions = { + http.middlewares.auth.basicAuth.usersFile = "/var/lib/nginx/.htpasswd"; + }; staticConfigOptions = { entryPoints = { traefik.address = "127.0.0.1:8082"; @@ -104,7 +107,6 @@ in { forwardedHeaders.trustedIPs = [ "127.0.0.1/32" ]; }; }; - http.middlewares.auth.basicAuth.usersFile = "/var/lib/nginx/.htpasswd"; api = { dashboard = true; insecure = true;