summaryrefslogtreecommitdiffstats
path: root/modules/tozt
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
parenta8c47b6f5f59cd8553f940ce9bd169849df8b151 (diff)
downloadpuppet-tozt-42a136e229ccf804c36ccb565c33fbf09f328814.tar.gz
puppet-tozt-42a136e229ccf804c36ccb565c33fbf09f328814.zip
add nginx config for prometheus
Diffstat (limited to 'modules/tozt')
-rw-r--r--modules/tozt/files/nginx/prometheus-tls.conf14
-rw-r--r--modules/tozt/files/nginx/prometheus.conf10
2 files changed, 24 insertions, 0 deletions
diff --git a/modules/tozt/files/nginx/prometheus-tls.conf b/modules/tozt/files/nginx/prometheus-tls.conf
new file mode 100644
index 0000000..ce0579b
--- /dev/null
+++ b/modules/tozt/files/nginx/prometheus-tls.conf
@@ -0,0 +1,14 @@
+server {
+ listen 443 default ssl;
+ server_name prometheus.tozt.net;
+
+ access_log /var/log/nginx/prometheus.access.log;
+ error_log /var/log/nginx/prometheus.error.log;
+
+ include ssl;
+
+ location / {
+ proxy_pass http://127.0.0.1:9090/;
+ }
+}
+# vim:ft=nginx
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