summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/exporter/base/templates/nginx-vhost.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-09-26 04:29:02 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-09-26 04:29:02 +0200
commit223297c29d78e4fe95e2ed2338455708e4e0a9c3 (patch)
tree02534f529becf59835dd1ed5dee0f2321966a09b /roles/monitoring/prometheus/exporter/base/templates/nginx-vhost.j2
parentswitch to pascal for pressure (diff)
parentfix alert wording (diff)
Merge branch 'topic/prometheus-refactoring'
Diffstat (limited to 'roles/monitoring/prometheus/exporter/base/templates/nginx-vhost.j2')
-rw-r--r--roles/monitoring/prometheus/exporter/base/templates/nginx-vhost.j219
1 files changed, 19 insertions, 0 deletions
diff --git a/roles/monitoring/prometheus/exporter/base/templates/nginx-vhost.j2 b/roles/monitoring/prometheus/exporter/base/templates/nginx-vhost.j2
new file mode 100644
index 00000000..70e65b29
--- /dev/null
+++ b/roles/monitoring/prometheus/exporter/base/templates/nginx-vhost.j2
@@ -0,0 +1,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;
+}