mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-17 13:52:56 -04:00
904fb2cca5
UK is not an ISO 3166-2 code and as such won't work as intended.
29 lines
758 B
Plaintext
29 lines
758 B
Plaintext
geoip2 /config/geoip2db/dbip-country-lite.mmdb {
|
|
auto_reload 1w;
|
|
$geoip2_data_continent_code continent code;
|
|
$geoip2_data_country_iso_code country iso_code;
|
|
}
|
|
|
|
# Country Codes: https://en.wikipedia.org/wiki/ISO_3166-2
|
|
|
|
map $geoip2_data_country_iso_code $geo-whitelist {
|
|
default yes;
|
|
# Example for whitelisting a country, comment out 'default yes;' above and uncomment 'default no;' and the whitelisted country below
|
|
# default no;
|
|
# GB yes;
|
|
}
|
|
|
|
map $geoip2_data_country_iso_code $geo-blacklist {
|
|
default yes;
|
|
# Example for blacklisting a country, uncomment the blacklisted country below
|
|
# GB no;
|
|
}
|
|
|
|
geo $lan-ip {
|
|
default no;
|
|
10.0.0.0/8 yes;
|
|
172.16.0.0/12 yes;
|
|
192.168.0.0/16 yes;
|
|
127.0.0.1 yes;
|
|
}
|