Files
remnawave-minishop/deploy/examples/caddy/Caddyfile
T

23 lines
563 B
Caddyfile

# Domains are read from .env:
# WEBHOOK_HOST=webhooks.example.com
# MINIAPP_HOST=app.example.com
#
# If you prefer hardcoded hostnames, replace {$WEBHOOK_HOST} and
# {$MINIAPP_HOST} with your real domains.
{$WEBHOOK_HOST} {
encode zstd gzip
# Caddy sets X-Forwarded-For/Host/Proto for reverse_proxy by default.
# The backend uses X-Forwarded-For for payment provider IP allowlists.
reverse_proxy backend:8080
}
{$MINIAPP_HOST} {
encode zstd gzip
# Keep forwarded headers for Web App URL generation and request logging.
reverse_proxy frontend:80
}