blob: b74f480aa4a9bd15ae63b7c2633d17323fed935a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
server {
{% if (inventory_hostname == prometheus_server) %}
listen 127.0.0.1:{{ prometheus_exporter_listen_port }} ssl;
{% else %}
listen {% if prometheus_exporter_listen_addr is defined %}{{ prometheus_exporter_listen_addr }}:{% endif %}{{ prometheus_exporter_listen_port }} ssl;
{% endif %}
server_name _;
access_log /var/log/nginx/prometheus-exporter_access.log;
error_log /var/log/nginx/prometheus-exporter_error.log;
ssl_certificate /etc/ssl/prometheus/exporter/crt.pem;
ssl_certificate_key /etc/ssl/prometheus/exporter/key.pem;
ssl_client_certificate /etc/ssl/prometheus/ca-crt.pem;
ssl_verify_client on;
root /nonexistent;
location = / {
return 404 'please specify the exporter you want to reach!';
}
include snippets/proxy-nobuff.conf;
include /etc/prometheus/exporter/*.locations;
}
|