We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11bb8b4 commit cf76c63Copy full SHA for cf76c63
2 files changed
Dockerfile
@@ -17,7 +17,7 @@ ENV WORKDIR=/app \
17
# Gotify settings
18
GOTIFY_SERVER_PORT=8080 \
19
# Trust Caddy proxy (localhost) to correctly parse X-Forwarded-For
20
- GOTIFY_SERVER_TRUSTEDPROXIES='["127.0.0.1"]'
+ GOTIFY_SERVER_TRUSTEDPROXIES='["127.0.0.1", "::1"]'
21
22
WORKDIR $WORKDIR
23
config/Caddyfile
@@ -61,7 +61,7 @@
61
}
62
63
# Proxy to the application backend
64
- reverse_proxy localhost:8080 {
+ reverse_proxy 127.0.0.1:8080 {
65
header_up X-Real-IP {http.request.header.CF-Connecting-IP:{http.request.header.Fly-Client-IP:{remote_host}}}
66
header_up X-Forwarded-For {http.request.header.CF-Connecting-IP:{http.request.header.Fly-Client-IP:{remote_host}}}
67
0 commit comments