rybbit/docs/Caddyfile

33 lines
668 B
Caddyfile

# Caddyfile for docs
{ # Global options
auto_https off # Disable automatic HTTPS
local_certs # Use local certificates for development
debug # Enable debug logging
}
localhost:80 { # Enable compression
encode zstd gzip
# Proxy all requests to the docs service
reverse_proxy docs_app:3000 {
# Add health checks and timeouts
health_timeout 5s
health_status 200
}
# Security headers
header {
X-Content-Type-Options nosniff
X-Frame-Options DENY
Referrer-Policy strict-origin-when-cross-origin
}
# Debug logs
log {
output stdout
format console
level DEBUG
}
}