added US to gitea

This commit is contained in:
2026-06-01 08:41:32 +02:00
parent de593cfcc3
commit b6180e8d79
+1
View File
@@ -218,6 +218,7 @@ metadata:
if ($remote_addr ~ "^10\.") { set $geo_allowed 1; } if ($remote_addr ~ "^10\.") { set $geo_allowed 1; }
if ($geoip2_country_code = "HU") { set $geo_allowed 1; } if ($geoip2_country_code = "HU") { set $geo_allowed 1; }
if ($geoip2_country_code = "DE") { set $geo_allowed 1; } if ($geoip2_country_code = "DE") { set $geo_allowed 1; }
if ($geoip2_country_code = "US") { set $geo_allowed 1; }
if ($geo_allowed = 0) { if ($geo_allowed = 0) {
return 403 "Access restricted to Hungary"; return 403 "Access restricted to Hungary";
} }