infrastructure/playbooks/roles/caddy/templates/Caddyfile.j2
Tobias Reisinger 9af19f51fa
Fix caddy forward_auth settings for authentik
The snippet will now set the correct Host for the next hop and keep the
original site in the X-Forward-Auth-Host. The authentik caddy-site will
then put the X-Forward-Auth-Host into the X-Forwarded-Host (which would
normally be the authentik host/domain). Authentik is able to handle the
X-Forwarded-Host header.
2025-05-30 15:15:34 +02:00

25 lines
265 B
Django/Jinja

{
email {{ admin_email }}
metrics
servers {
strict_sni_host on
}
}
import /etc/caddy/snippets
http://{{ host_vpn.domain }} {
import vpn_only
metrics
}
*.serguzim.me {
import acmedns
redir https://www.serguzim.me/
}
import /etc/caddy/conf.d/*.conf