From ad86562c176744fe1795bfd70345e6ec35ee6af6 Mon Sep 17 00:00:00 2001 From: traveler Date: Tue, 21 Jan 2025 16:50:08 -0600 Subject: [PATCH] sd --- Caddyfile | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) 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 - } -} +