diff --git a/docker/Caddyfile b/docker/Caddyfile index 575845b..f7bce40 100644 --- a/docker/Caddyfile +++ b/docker/Caddyfile @@ -1,6 +1,17 @@ { email {$ACME_EMAIL} admin off + servers { + listener_wrappers { + proxy_protocol { + timeout 2s + allow {$TRUST_PROXY} + } + tls + } + trusted_proxies static {$TRUST_PROXY}/32 + client_ip_headers X-Forwarded-For X-Real-IP + } } # Internal only, for the container healthcheck. Never published in compose.