From 514a3403c6b2bbdf4d725e889407300aac9302c1 Mon Sep 17 00:00:00 2001 From: L3D Date: Wed, 28 Feb 2024 01:20:24 +0100 Subject: [PATCH] Adding grafana.winkekatze.tv --- .../nginx/sites/grafana.winkekatze.tv_tls.conf | 18 ++++++++++++++++++ .../sites/www.grafana.winkekatze.tv_tls.conf | 14 ++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 templates/files/nginx/sites/grafana.winkekatze.tv_tls.conf create mode 100644 templates/files/nginx/sites/www.grafana.winkekatze.tv_tls.conf diff --git a/templates/files/nginx/sites/grafana.winkekatze.tv_tls.conf b/templates/files/nginx/sites/grafana.winkekatze.tv_tls.conf new file mode 100644 index 0000000..8a54022 --- /dev/null +++ b/templates/files/nginx/sites/grafana.winkekatze.tv_tls.conf @@ -0,0 +1,18 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name grafana.winkekatze.tv; + + include snippets/tls_parameters_{{ site.name }}.snippet.conf; + include snippets/tls_certificate_{{ site.name }}.snippet.conf; + include snippets/logging_{{ site.name }}.snippet.conf; + + location / { + proxy_pass http://localhost:3000; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } +} diff --git a/templates/files/nginx/sites/www.grafana.winkekatze.tv_tls.conf b/templates/files/nginx/sites/www.grafana.winkekatze.tv_tls.conf new file mode 100644 index 0000000..e3cf383 --- /dev/null +++ b/templates/files/nginx/sites/www.grafana.winkekatze.tv_tls.conf @@ -0,0 +1,14 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name www.grafana.winkekatze.tv; + + include snippets/tls_parameters_{{ site.name }}.snippet.conf; + include snippets/tls_certificate_{{ site.name }}.snippet.conf; + include snippets/logging_{{ site.name }}.snippet.conf; + + location / { + return 308 https://grafana.winkekatze.tv/; + } +}