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/; + } +}