Skip to content

Commit 5d3016c

Browse files
committed
Explicitly set some common headers
1 parent a539cfe commit 5d3016c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

config/Caddyfile.example

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ localhost {
3232

3333
encode
3434

35-
reverse_proxy web:8000
35+
reverse_proxy web:8000 {
36+
header_up Host {host}
37+
header_up X-Real-IP {remote_host}
38+
header_up X-Forwarded-For {http.X-Forwarded-For} {remote_host}
39+
header_up X-Forwarded-Proto {scheme}
40+
}
3641

3742
handle /static/* {
3843
root * /wger

0 commit comments

Comments
 (0)