rybbit/docs/Caddyfile
Bill Yang aaeba003f5 Update Caddyfile and docker-compose.yml for local development configuration
- Added global options in Caddyfile to disable automatic HTTPS and use local certificates.
- Updated docker-compose.yml to fallback to localhost for DOMAIN_NAME if not set, and removed unnecessary port mappings for HTTP/3.
2025-04-21 01:29:51 -07:00

23 lines
No EOL
505 B
Caddyfile

# Caddyfile for docs
{
# Global options
auto_https off # Disable automatic HTTPS
local_certs # Use local certificates for development
}
{$DOMAIN_NAME:localhost} {
# Enable compression
encode zstd gzip
# Proxy all requests to the docs service
handle {
reverse_proxy docs_app:3000
}
# Security headers
header {
X-Content-Type-Options nosniff
X-Frame-Options DENY
Referrer-Policy strict-origin-when-cross-origin
}
}