This commit is contained in:
parent
288b2329a9
commit
f8528e1ef6
@ -39,12 +39,12 @@ http {
|
|||||||
set_real_ip_from ::1;
|
set_real_ip_from ::1;
|
||||||
|
|
||||||
{%- if nginx.config.geoip %}
|
{%- if nginx.config.geoip %}
|
||||||
geoip2 /usr/share/GeoIP/GeoLite2-ASN.mmdb {
|
geoip2 /var/lib/haproxy/geoip/GeoLite2-ASN.mmdb {
|
||||||
$geoip2_asn default=0 autonomous_system_number;
|
$geoip2_asn default=0 autonomous_system_number;
|
||||||
$geoip2_org default=ISP autonomous_system_organization;
|
$geoip2_org default=ISP autonomous_system_organization;
|
||||||
}
|
}
|
||||||
|
|
||||||
geoip2 /usr/share/GeoIP/GeoLite2-City.mmdb {
|
geoip2 /var/lib/haproxy/geoip/GeoLite2-City.mmdb {
|
||||||
$geoip2_country_name default=England country names en;
|
$geoip2_country_name default=England country names en;
|
||||||
$geoip2_city_name default=London city names en;
|
$geoip2_city_name default=London city names en;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user