diff --git a/Caddyfile b/Caddyfile index 9ec562a..1511b9f 100644 --- a/Caddyfile +++ b/Caddyfile @@ -1,3 +1,16 @@ +(authentik) { + route /outpost.goauthentik.io/* { + reverse_proxy http://authentik:9000 + } + + forward_auth http://authentik:9000 { + uri /outpost.goauthentik.io/auth/caddy + copy_headers X-Authentik-Username X-Authentik-Groups X-Authentik-Email X-Authentik-Name X-Authentik-Uid X-Authentik-Jwt X-Authentik-Meta-Jwks X-Authentik-Meta-Outpost X-Authentik-Meta-Provider X-Authentik-Meta-App X-Authentik-Meta-Version + } +} + + + dns.netgrimoire.com { import authentik reverse_proxy http://192.168.5.7:5380 @@ -78,15 +91,6 @@ email.gnarlypandaproductions.com, email.netgrimoire.com, email.wasted-bandwidth. -(authentik) { - route /outpost.goauthentik.io/* { - reverse_proxy http://authentik:9000 - } - - forward_auth http://authentik:9000 { - uri /outpost.goauthentik.io/auth/caddy - copy_headers X-Authentik-Username X-Authentik-Groups X-Authentik-Email X-Authentik-Name X-Authentik-Uid X-Authentik-Jwt X-Authentik-Meta-Jwks X-Authentik-Meta-Outpost X-Authentik-Meta-Provider X-Authentik-Meta-App X-Authentik-Meta-Version - } -} +