feat: Initial commit.
This commit is contained in:
32
caddy/Caddyfile
Normal file
32
caddy/Caddyfile
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
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
|
||||
roll_size 30MiB
|
||||
roll_keep 5
|
||||
}
|
||||
tls {
|
||||
dns cloudflare {env.CF_AUTH_TOKEN}
|
||||
resolvers 1.1.1.1
|
||||
}
|
||||
}
|
||||
|
||||
ductcalc.pro {
|
||||
tls
|
||||
log
|
||||
crowdsec
|
||||
reverse_proxy http://ductcalc:8080
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user