Add caddy

This commit is contained in:
Tobias Reisinger 2022-08-22 23:05:13 +02:00
parent 73c6b454fa
commit dfe87690d7
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
25 changed files with 162 additions and 6 deletions
caddy/config

15
caddy/config/snippets Normal file
View file

@ -0,0 +1,15 @@
(auth_serguzim_me) {
# always forward outpost path to actual outpost
reverse_proxy /outpost.goauthentik.io/* authentik:9000
# forward authentication to outpost
forward_auth authentik:9000 {
uri /outpost.goauthentik.io/auth/caddy
# capitalization of the headers is important, otherwise they will be empty
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
# optional, in this config trust all private ranges, should probably be set to the outposts IP
trusted_proxies private_ranges
}
}