From 2d4a96098ca7a57002606baf45e3f526bd5386fc Mon Sep 17 00:00:00 2001 From: pierre Date: Thu, 19 Mar 2026 23:22:50 +0000 Subject: [PATCH] revert the change made --- .gitignore | 2 ++ nginx-config.configmap.yaml | 8 ++++---- nginx.conf | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 08719b9..41a24f4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ certbot/conf/archive/ certbot/conf/.certbot.lock +terraform/terraform.tfstate +terraform/terraform.tfstate.backup diff --git a/nginx-config.configmap.yaml b/nginx-config.configmap.yaml index 672e3a3..931c2c7 100644 --- a/nginx-config.configmap.yaml +++ b/nginx-config.configmap.yaml @@ -31,10 +31,10 @@ data: $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 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 - $allowed_country {\n\t\tdefault no;\n\t\tFR\tyes; # Allow France\n\t\tGB\tyes; - # Allow UK\n #NL yes; # Allow netherland\n\t\t#IN\tyes; # - 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 + country names en;\n\t}\n \n\tmap $geoip2_data_country_iso_code $allowed_country + {\n\t\tdefault no;\n\t\tFR\tyes; # Allow France\n\t\tGB\tyes; # Allow UK\n #NL + \ yes; # Allow netherland\n\t\t#IN\tyes; # 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 $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/blacklisted.d/*.conf;\n\n\t# adding this line for the fial2ban settings\t\n diff --git a/nginx.conf b/nginx.conf index 9e11afb..f750e8c 100755 --- a/nginx.conf +++ b/nginx.conf @@ -64,7 +64,7 @@ http { $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; FR yes; # Allow France GB yes; # Allow UK