summaryrefslogtreecommitdiffstats
path: root/modules/tozt/files/nginx/prometheus.conf
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-07-01 22:28:23 -0400
committerJesse Luehrs <doy@tozt.net>2021-07-01 22:28:23 -0400
commit42a136e229ccf804c36ccb565c33fbf09f328814 (patch)
tree2b7c35596e35c33ce25386c6c7391c5f46b1daa2 /modules/tozt/files/nginx/prometheus.conf
parenta8c47b6f5f59cd8553f940ce9bd169849df8b151 (diff)
downloadpuppet-tozt-42a136e229ccf804c36ccb565c33fbf09f328814.tar.gz
puppet-tozt-42a136e229ccf804c36ccb565c33fbf09f328814.zip
add nginx config for prometheus
Diffstat (limited to 'modules/tozt/files/nginx/prometheus.conf')
-rw-r--r--modules/tozt/files/nginx/prometheus.conf10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/tozt/files/nginx/prometheus.conf b/modules/tozt/files/nginx/prometheus.conf
new file mode 100644
index 0000000..5d811e8
--- /dev/null
+++ b/modules/tozt/files/nginx/prometheus.conf
@@ -0,0 +1,10 @@
+server {
+ listen 80 default;
+ server_name prometheus.tozt.net;
+
+ access_log /var/log/nginx/prometheus.access.log;
+ error_log /var/log/nginx/prometheus.error.log;
+
+ rewrite ^(.*) https://$host$1 permanent;
+}
+# vim:ft=nginx