ansible/snippets/prometheus-nginx.j2

13 lines
265 B
Django/Jinja

# dashboard nginx config snippet
location /prometheus/ {
proxy_pass http://localhost:9090/prometheus/;
include proxy_params;
{% for host in bitlair_ip_whitelist %}
allow {{ host }};
{% endif %}
allow "127.0.0.0/8"
allow "::1";
deny all;
}