blocking every country instead of allowing all
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
2026-03-13 00:07:31 +00:00
parent 79ef0ab640
commit 5847aed43e
+7 -3
View File
@@ -61,13 +61,17 @@ http {
}
map $geoip2_data_country_iso_code $allowed_country {
default yes;
IN no;
default no;
#NL yes; # Allow netherland
FR yes; # Allow France
UK yes; # Allow UK
NL no; # Block netherland
IN no; # Block India
CN no; # Block China
RU no; # Block Russia
KP no; # Block North Korea
}
# Full list of country codes: https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes
include /etc/nginx/deny.d/*.conf;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/blacklisted.d/*.conf;