32 lines
558 B
Caddyfile
32 lines
558 B
Caddyfile
{
|
|
email {env.ACME_EMAIL}
|
|
servers {
|
|
client_ip_headers X-Forwarded-For
|
|
trusted_proxies static private_ranges
|
|
trusted_proxies_strict
|
|
}
|
|
order crowdsec before respond
|
|
crowdsec {
|
|
api_url http://crowdsec:8080
|
|
api_key {$CROWDSEC_API_KEY}
|
|
ticker_interval 15s
|
|
}
|
|
log {
|
|
level INFO
|
|
output file /var/log/caddy/access.log
|
|
}
|
|
}
|
|
|
|
ductcalc.pro {
|
|
|
|
tls {
|
|
dns cloudflare {env.CF_AUTH_TOKEN}
|
|
resolvers 1.1.1.1
|
|
}
|
|
|
|
log
|
|
crowdsec
|
|
reverse_proxy http://ductcalc:8080
|
|
}
|
|
|