Files
Reverse_proxy_Nginx/terraform/geoip.conf.tftpl
T
pi-ux-ce b1def329e9
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 16m53s
adding specifiy geoip option
2026-04-15 09:29:59 +01:00

14 lines
294 B
Plaintext
Executable File

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;
}