From 75d7097e23deca8953f292f66fe77fe4abaaba7e Mon Sep 17 00:00:00 2001 From: mjallen18 Date: Thu, 5 Feb 2026 17:05:30 -0600 Subject: [PATCH] fix nuc stuff --- modules/nixos/services/traefik/default.nix | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/modules/nixos/services/traefik/default.nix b/modules/nixos/services/traefik/default.nix index 9db99a5..4d21f24 100755 --- a/modules/nixos/services/traefik/default.nix +++ b/modules/nixos/services/traefik/default.nix @@ -22,13 +22,11 @@ let listToAttrs (map makeRouter cfg.reverseProxies); domain = "mjallen.dev"; - serverIp = "10.0.1.3"; # Forward services - authUrl = "http://${serverIp}:9000/outpost.goauthentik.io"; - - cacheUrl = "http://${serverIp}:9012"; - hassUrl = "http://10.0.1.4:8123"; + authUrl = "http://localhost:9000/outpost.goauthentik.io"; + cacheUrl = "http://localhost:9012"; + hassUrl = "http://nuc-nixos.local:8123"; # Plugins traefikPlugins = { @@ -57,8 +55,7 @@ let # misc letsEncryptEmail = "jalle008@proton.me"; - dataDir = "/media/nas/main/appdata/traefik"; - authentikAddress = "http://${serverIp}:9000/outpost.goauthentik.io/auth/traefik"; + configDir = "/media/nas/main/appdata"; in { imports = [ ./options.nix ]; @@ -133,7 +130,7 @@ in services.traefik = { enable = true; - dataDir = dataDir; + dataDir = "${configDir}/traefik"; group = "jallen-nas"; # group; environmentFiles = [ config.sops.templates."traefik.env".path ]; @@ -216,7 +213,7 @@ in authentik = { forwardAuth = { tls.insecureSkipVerify = true; - address = authentikAddress; + address = "${authUrl}/auth/traefik"; trustForwardHeader = true; authResponseHeaders = [ "X-authentik-username"