1. The problem I’m having:
I’d like to log caddy errors to stderr and caddy output to stdout, and not both to just stderr OR stdout.
3. Caddy version:
caddy:2.7.6
4. How I installed and ran Caddy:
a. System environment:
Docker
d. My complete Caddy config:
{$DOMAIN_NAME} {
#tls {$TLS_EMAIL} {
# ca https://acme.sectigo.com/v2/OV
# eab {$EAB_KID} {$EAB_HMAC}
#}
# Test HTTPS setup
#tls {$TLS_EMAIL} {
# ca https://acme-staging-v02.api.letsencrypt.org/directory
#}
# Serves static files
root * /var/www
file_server
# Serves dynamic requests
@notStatic {
not path /static/*
}
reverse_proxy @notStatic django:8000
encode zstd gzip
log {
output stdout
}
}