Hi,
I’ve inherited some infrastructure and as part of this we have a Caddy server.
I’ve gone through the Caddy file and I’m happy with all of the config except for the :443, :80 start of the block.
I assume that :443 and :80 are telling Caddy to listen on port 443 and 80? Or is it that if traffic comes in on either of these ports to use the configuration in the block?
:443, :80 {
root /opt/caddy/html
proxy / PROXY_IP1 PROXY_IP2 {
policy ip_hash
transparent
except /proxy_health
}
log / /var/log/caddy/access.log "[{when}] {hostname} {method} {host} {path} {query} {status} {latency} {size} {>X-Forwarded-For} {>X-Forwarded-Proto} {>X-Dest-Ip}"
errors /var/log/caddy/errors.log
tls letsencrypt@example.com
tls {
max_certs 100
}
realip {
from 1.1.1.1/32
}
}
Is there any documentation over starting a block like this? I wasn’t able to find any.
Thanks.