added Germany to gitea

This commit is contained in:
2026-03-26 17:16:31 +01:00
parent 3de9efef41
commit af5bce1069
+1
View File
@@ -217,6 +217,7 @@ metadata:
if ($remote_addr ~ "^192\.168\.") { set $geo_allowed 1; } if ($remote_addr ~ "^192\.168\.") { set $geo_allowed 1; }
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 ($geo_allowed = 0) { if ($geo_allowed = 0) {
return 403 "Access restricted to Hungary"; return 403 "Access restricted to Hungary";
} }