Skip to content

Commit

Permalink
specify protocol, add X-Real-IP header
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikvtcodes committed Dec 24, 2023
1 parent 941d7c8 commit 5a4909c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/proxy/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ auth.orangeunilabs.com {
dns cloudflare {env.CF_API_TOKEN}
resolvers 1.1.1.1
}
reverse_proxy auth:9000 {
reverse_proxy http://auth:9000 {
# Authentik reverse proxy config - required forwarded headers
# https://goauthentik.io/docs/installation/reverse-proxy
header_up X-Forwarded-Proto {scheme}

header_up X-Real-IP {remote_host}
header_up X-Forwarded-For {remote}
header_up Host {host}
header_up Connection {>Connection [upgrade]}
Expand Down

0 comments on commit 5a4909c

Please sign in to comment.