19 lines
776 B
Caddyfile
19 lines
776 B
Caddyfile
# Caddyfile for Fellowship SUT - STAGING
|
|
# Domain will be dynamically set via environment variable CADDY_DOMAIN
|
|
# Uses Let's Encrypt Staging CA to avoid rate limits (up to 5,000 cert/hour)
|
|
# For local development: CADDY_DOMAIN defaults to localhost
|
|
# For production certificates, use Caddyfile.prod instead
|
|
# For tutorial instances (SUT + Jenkins + IDE), use Caddyfile.fellowship instead
|
|
|
|
{$CADDY_DOMAIN:localhost} {
|
|
# Use Let's Encrypt staging CA for development and testing
|
|
# Staging certs won't be trusted by browsers but avoid rate limits
|
|
# Caddy automatically uses self-signed certs for localhost
|
|
tls {
|
|
ca https://acme-staging-v02.api.letsencrypt.org/directory
|
|
}
|
|
|
|
reverse_proxy /api/* backend:5000
|
|
reverse_proxy /* frontend:3000
|
|
}
|