Skip to content

Commit

Permalink
add header forward
Browse files Browse the repository at this point in the history
  • Loading branch information
younes200 committed Dec 8, 2023
1 parent 4680c6a commit bbc64ea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,17 @@
# Reverse proxy directives
reverse_proxy /trpc/* localhost:2021 {
trusted_proxies 172.25.0.0/16
header_up X-Forwarded-Proto {scheme}
header_up X-Real-IP {remote}
}
reverse_proxy /admin/* localhost:9000 {
trusted_proxies 172.25.0.0/16
header_up X-Forwarded-Proto {scheme}
header_up X-Real-IP {remote}
}
reverse_proxy /* localhost:3000 {
trusted_proxies 172.25.0.0/16
header_up X-Forwarded-Proto {scheme}
header_up X-Real-IP {remote}
}
}

0 comments on commit bbc64ea

Please sign in to comment.