generated from szaimen/aio-fail2ban
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCaddyfile
42 lines (36 loc) · 768 Bytes
/
Caddyfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
auto_https disable_redirects
storage file_system {
root /data/caddy
}
servers {
trusted_proxies placeholder
}
log {
level ERROR
}
}
(GEOFILTER) {
@geofilter {
not maxmind_geolocation {
db_path "/data/GeoLite2-Country.mmdb"
allow_countries
}
not remote_ip private_ranges
# Exclude IP-address of scan.nexcloud.com so that scanning still works
not remote_ip 95.217.53.149
}
respond @geofilter "Access denied" 403 {
close
}
}
https://{$NC_DOMAIN}:443 {
# import GEOFILTER
reverse_proxy nextcloud-aio-apache:{$APACHE_PORT}
# TLS options
tls {
issuer acme {
disable_http_challenge
}
}
}