Files

16 lines
692 B
Plaintext
Raw Permalink Normal View History

# Global options shared by Caddyfile (prod) and Caddyfile.dev, imported inside
# their global options block.
# TLS ends in front of this container (a proxy on the host talks to it on
# 127.0.0.1:8090), so Caddy serves plain HTTP and never tries to get
# certificates. Revisit once it's settled where TLS should end.
auto_https off
servers {
# Keep the X-Forwarded-For/-Proto/-Host the host proxy sends: it
# reaches the container from a private (docker) address. Without this
# Caddy replaces them with its own, so Laravel (trustProxies '*')
# would see every request as plain http. Narrow this to the proxy's
# actual address once it's known.
trusted_proxies static private_ranges
}