Files
configpolicy/roles/victoria-metrics-nginx/templates/victoria-metrics.nginx.conf.j2
Dustin C. Hatch 887d462127 r/v-m-nginx: Proxy for other services too
The *metricspi* hosts several Victoria Metrics-adjacent applications.
These each expose their own HTTP interface that can be used for
debugging or introspecting state.  To make these accessible on the
network, the *victoria-metrics-nginx* role now configures `proxy_pass`
directives for them in its nginx configuration.
2022-08-12 11:59:25 -05:00

17 lines
343 B
Django/Jinja

server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name {{ victoria_metrics_server_name }};
location / {
proxy_pass http://[::1]:8428/;
client_max_body_size 100m;
}
{% for item in vm_nginx_proxy_paths %}
location {{ item.path }} {
proxy_pass {{ item.url }};
}
{% endfor %}
}