# dashboard nginx config snippet

location /prometheus/ {
    proxy_pass http://localhost:9090/prometheus/;
    include proxy_params;

{% for host in trusted_ranges | default([]) %}
    allow {{ host.cidr }};
{% endfor %}
    allow "127.0.0.0/8";
    allow "::1";
    deny all;
}