mirror of
https://github.com/rybbit-io/rybbit.git
synced 2025-05-19 15:54:17 +02:00
24 lines
No EOL
615 B
Caddyfile
24 lines
No EOL
615 B
Caddyfile
# Caddyfile
|
|
# Use the domain name passed from docker-compose environment
|
|
{$DOMAIN_NAME} {
|
|
# Enable compression
|
|
encode zstd gzip
|
|
|
|
# Proxy API requests to the backend service
|
|
handle_path /api/* {
|
|
reverse_proxy backend:3001
|
|
}
|
|
|
|
# Proxy all other requests to the client service
|
|
handle {
|
|
reverse_proxy client:3002
|
|
}
|
|
|
|
# Optional: Add security headers (example)
|
|
# header {
|
|
# Strict-Transport-Security max-age=31536000;
|
|
# X-Content-Type-Options nosniff
|
|
# X-Frame-Options DENY
|
|
# Referrer-Policy strict-origin-when-cross-origin
|
|
# }
|
|
} |