mirror of
https://github.com/rybbit-io/rybbit.git
synced 2025-05-10 20:05:38 +02:00
- 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.
23 lines
No EOL
505 B
Caddyfile
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
|
|
}
|
|
} |