This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
certbot/conf/archive/
|
certbot/conf/archive/
|
||||||
|
|
||||||
certbot/conf/.certbot.lock
|
certbot/conf/.certbot.lock
|
||||||
|
terraform/terraform.tfstate
|
||||||
|
terraform/terraform.tfstate.backup
|
||||||
|
|||||||
@@ -31,10 +31,10 @@ data:
|
|||||||
$http_upgrade $connection_upgrade {\n\t\tdefault upgrade;\n '' close;\n\t}\n\n\tgeoip2
|
$http_upgrade $connection_upgrade {\n\t\tdefault upgrade;\n '' close;\n\t}\n\n\tgeoip2
|
||||||
/data/dbip-country-lite-2026-01.mmdb{\n\t\t$geoip2_data_country_iso_code country
|
/data/dbip-country-lite-2026-01.mmdb{\n\t\t$geoip2_data_country_iso_code country
|
||||||
iso_code;\n\t $geoip2_data_city_name city names en;\n\t $geoip2_data_country_name
|
iso_code;\n\t $geoip2_data_city_name city names en;\n\t $geoip2_data_country_name
|
||||||
country names en;\n\t}\n \n\tmap $geoip2_data_country_iso_code:$ssl_client_verify
|
country names en;\n\t}\n \n\tmap $geoip2_data_country_iso_code $allowed_country
|
||||||
$allowed_country {\n\t\tdefault no;\n\t\tFR\tyes; # Allow France\n\t\tGB\tyes;
|
{\n\t\tdefault no;\n\t\tFR\tyes; # Allow France\n\t\tGB\tyes; # Allow UK\n #NL
|
||||||
# Allow UK\n #NL yes; # Allow netherland\n\t\t#IN\tyes; #
|
\ yes; # Allow netherland\n\t\t#IN\tyes; # Allow India\n\t}\n\t# Full list
|
||||||
Allow India\n\t}\n\t# Full list of country codes: https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes\n\n\tmap
|
of country codes: https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes\n\n\tmap
|
||||||
$allowed_country $should_log_blocked {\n\t\tno 1;\n\t\tdefault 0;\n\t}\n\n\tinclude
|
$allowed_country $should_log_blocked {\n\t\tno 1;\n\t\tdefault 0;\n\t}\n\n\tinclude
|
||||||
/etc/nginx/deny.d/*.conf;\n\tinclude /etc/nginx/conf.d/*.conf;\n include
|
/etc/nginx/deny.d/*.conf;\n\tinclude /etc/nginx/conf.d/*.conf;\n include
|
||||||
/etc/nginx/blacklisted.d/*.conf;\n\n\t# adding this line for the fial2ban settings\t\n
|
/etc/nginx/blacklisted.d/*.conf;\n\n\t# adding this line for the fial2ban settings\t\n
|
||||||
|
|||||||
+1
-1
@@ -64,7 +64,7 @@ http {
|
|||||||
$geoip2_data_country_name country names en;
|
$geoip2_data_country_name country names en;
|
||||||
}
|
}
|
||||||
|
|
||||||
map $geoip2_data_country_iso_code:$ssl_client_verify $allowed_country {
|
map $geoip2_data_country_iso_code $allowed_country {
|
||||||
default no;
|
default no;
|
||||||
FR yes; # Allow France
|
FR yes; # Allow France
|
||||||
GB yes; # Allow UK
|
GB yes; # Allow UK
|
||||||
|
|||||||
Reference in New Issue
Block a user