fix nuc stuff

This commit is contained in:
mjallen18
2026-02-05 17:05:30 -06:00
parent b738f38267
commit 75d7097e23

View File

@@ -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"