Files
VPS-ansible/roles/authelia/templates/Caddyfile.j2
2026-09-23 06:15:46 +00:00

35 lines
1.0 KiB
Django/Jinja

auth.{{ authelia_domain }} {
reverse_proxy authelia:{{ authelia_port }}
}
# Reusable snippet for Authelia Forward Auth
(authelia_auth) {
forward_auth http://authelia:9091 { # Replace with your Authelia IP/Port or container name
uri /api/verify?rd=https://auth.frantecrt.duckdns.org # Replace with your public Authelia URL
copy_headers Remote-User Remote-Groups Remote-Email Remote-Name
}
}
test.frantecrt.duckdns.org {
# Import the auth configuration block
import authelia_auth
# Route the traffic to your backend application if authenticated
reverse_proxy frantecrt.duckdns.org:8080
}
semaphore.frantecrt.duckdns.org {
# Import the auth configuration block
import authelia_auth
# Route the traffic to your backend application if authenticated
reverse_proxy semaphore:3000
}
git.frantecrt.duckdns.org {
# Import the auth configuration block
import authelia_auth
# Route the traffic to your backend application if authenticated
reverse_proxy gitea:3000
}