blocking every country instead of allowing all
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
This commit is contained in:
+7
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user