added GB to some apps
This commit is contained in:
@@ -378,6 +378,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 = "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";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -297,6 +297,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 = "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,6 +141,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 = "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";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -944,6 +944,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 = "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";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -165,6 +165,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 = "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";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -215,6 +215,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 = "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";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2322,6 +2322,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 = "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";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1509,6 +1509,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 = "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";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -487,6 +487,7 @@ 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; }
|
||||||
|
|||||||
@@ -577,6 +577,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 = "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";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -403,6 +403,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 = "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";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -124,6 +124,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 = "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";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user