summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/exporter/base/templates/nginx-vhost.j2
blob: 70e65b29e1a5bd0c5b315fba38fe88ceafdf44f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
server {
    listen {{ prometheus_exporter_listen }} ssl;
    server_name _;

    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;
}