adding specifiy geoip option
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 16m53s

This commit is contained in:
2026-04-15 09:29:59 +01:00
parent 9335e0ac24
commit b1def329e9
7 changed files with 95 additions and 23 deletions
+13
View File
@@ -0,0 +1,13 @@
map $geoip2_data_country_iso_code $allowed_country_${name} {
default no;
%{ for country in allowed_country_list}
${country} yes;
%{ endfor ~}
}
map $allowed_country_${name} $should_log_blocked_${upper(join("_", sort(allowed_country_list)))} {
no 1;
default 0;
}