Untitled
Anonymous
Plain Text
08/22/2025 12:11 PM
617 B
11
Indexable
Never
# ----- FRONTEND -----
dev-frontend.test.com {
# For dev: issue certs from Caddy's local CA
tls internal
@http method GET HEAD
encode zstd gzip
log
# The frontend container is reachable by its Docker service name on the 'web' network
reverse_proxy frontend:80
}
# ----- BACKEND -----
dev-backend.test.com {
tls internal
encode zstd gzip
log
# The backend container is reachable by its Docker service name on the 'web' network
reverse_proxy backend:8080
}
# (Optional) A simple fallback for unknown hosts (helps debugging)
:80, :443 {
respond "host not configured" 404
}
Editor is loading...
Leave a Comment