removed GB as allowed country

This commit is contained in:
2026-02-01 10:27:48 +01:00
parent 64e0854859
commit c14aa3ac8b
13 changed files with 0 additions and 13 deletions
-1
View File
@@ -378,7 +378,6 @@ 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 = "GB") { set $geo_allowed 1; }
if ($geo_allowed = 0) { if ($geo_allowed = 0) {
return 403 "Access restricted to Hungary"; return 403 "Access restricted to Hungary";
} }
-1
View File
@@ -297,7 +297,6 @@ 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 = "GB") { set $geo_allowed 1; }
if ($geo_allowed = 0) { if ($geo_allowed = 0) {
return 403 "Access restricted to Hungary"; return 403 "Access restricted to Hungary";
} }
@@ -141,7 +141,6 @@ 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 = "GB") { set $geo_allowed 1; }
if ($geo_allowed = 0) { if ($geo_allowed = 0) {
return 403 "Access restricted to Hungary"; return 403 "Access restricted to Hungary";
} }
-1
View File
@@ -944,7 +944,6 @@ 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 = "GB") { set $geo_allowed 1; }
if ($geo_allowed = 0) { if ($geo_allowed = 0) {
return 403 "Access restricted to Hungary"; return 403 "Access restricted to Hungary";
} }
-1
View File
@@ -165,7 +165,6 @@ 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 = "GB") { set $geo_allowed 1; }
if ($geo_allowed = 0) { if ($geo_allowed = 0) {
return 403 "Access restricted to Hungary"; return 403 "Access restricted to Hungary";
} }
-1
View File
@@ -215,7 +215,6 @@ 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 = "GB") { set $geo_allowed 1; }
if ($geo_allowed = 0) { if ($geo_allowed = 0) {
return 403 "Access restricted to Hungary"; return 403 "Access restricted to Hungary";
} }
-1
View File
@@ -2322,7 +2322,6 @@ 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 = "GB") { set $geo_allowed 1; }
if ($geo_allowed = 0) { if ($geo_allowed = 0) {
return 403 "Access restricted to Hungary"; return 403 "Access restricted to Hungary";
} }
-1
View File
@@ -1509,7 +1509,6 @@ 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 = "GB") { set $geo_allowed 1; }
if ($geo_allowed = 0) { if ($geo_allowed = 0) {
return 403 "Access restricted to Hungary"; return 403 "Access restricted to Hungary";
} }
-1
View File
@@ -487,7 +487,6 @@ metadata:
# Allow all Hungarian traffic # Allow all Hungarian traffic
if ($geoip2_country_code = "HU") { set $geo_allowed 1; } if ($geoip2_country_code = "HU") { set $geo_allowed 1; }
if ($geoip2_country_code = "GB") { set $geo_allowed 1; }
# Public share paths # Public share paths
if ($request_uri ~* "^/share") { set $geo_allowed 1; } if ($request_uri ~* "^/share") { set $geo_allowed 1; }
-1
View File
@@ -241,7 +241,6 @@ 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 = "GB") { set $geo_allowed 1; }
if ($geo_allowed = 0) { if ($geo_allowed = 0) {
return 403 "Access restricted to Hungary and UK"; return 403 "Access restricted to Hungary and UK";
} }
-1
View File
@@ -577,7 +577,6 @@ 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 = "GB") { set $geo_allowed 1; }
if ($geo_allowed = 0) { if ($geo_allowed = 0) {
return 403 "Access restricted to Hungary"; return 403 "Access restricted to Hungary";
} }
-1
View File
@@ -403,7 +403,6 @@ 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 = "GB") { set $geo_allowed 1; }
if ($geo_allowed = 0) { if ($geo_allowed = 0) {
return 403 "Access restricted to Hungary"; return 403 "Access restricted to Hungary";
} }
-1
View File
@@ -124,7 +124,6 @@ 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 = "GB") { set $geo_allowed 1; }
if ($geo_allowed = 0) { if ($geo_allowed = 0) {
return 403 "Access restricted to Hungary"; return 403 "Access restricted to Hungary";
} }