summaryrefslogtreecommitdiffstats
path: root/roles/prometheus/templates
diff options
context:
space:
mode:
Diffstat (limited to 'roles/prometheus/templates')
-rw-r--r--roles/prometheus/templates/prometheus.nginx.conf.j210
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/prometheus/templates/prometheus.nginx.conf.j2 b/roles/prometheus/templates/prometheus.nginx.conf.j2
new file mode 100644
index 00000000..5ae9c20c
--- /dev/null
+++ b/roles/prometheus/templates/prometheus.nginx.conf.j2
@@ -0,0 +1,10 @@
+server {
+ listen 80;
+ listen [::]:80;
+
+ server_name {{ prometheus_hostname }};
+
+ location / {
+ proxy_pass http://127.0.0.1:{{ prometheus_port }}/;
+ }
+}