22 lines
501 B
Plaintext
22 lines
501 B
Plaintext
{% if nginx__geoip_country %}
|
|
geoip_country {{ nginx__geoip_country }};
|
|
{% else %}
|
|
#geoip_country path/to/GeoIP.dat;
|
|
{% endif %}
|
|
{% if nginx__geoip_city %}
|
|
geoip_city {{ nginx__geoip_city }};
|
|
{% else %}
|
|
#geoip_city path/to/GeoLiteCity.dat;
|
|
{% endif %}
|
|
{% for geoip2 in nginx__geoip2 %}
|
|
|
|
geoip2 {{ geoip2.file }} {
|
|
{% if geoip2.auto_reload | default(False) %}
|
|
auto_reload {{ geoip2.auto_reload }};
|
|
{% endif %}
|
|
{% for map in geoip2.maps %}
|
|
${{ map.var }} {{ map.path }};
|
|
{% endfor %}
|
|
}
|
|
{% endfor %}
|