add promtail and geoip support

This commit is contained in:
nd 2021-11-26 03:33:55 +01:00
parent 08c567f7af
commit e71de82cdf
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
5 changed files with 60 additions and 0 deletions

View file

@ -3,3 +3,9 @@ set_real_ip_from {{ ip }};
{% endfor %}
real_ip_header {{ nginx.real_ip_header }};
real_ip_recursive on;
{% for ip in nginx.real_ip_from %}
geoip_proxy {{ ip }};
{% endfor %}
geoip_proxy_recursive on;