From ecc7f7f0ef84d0d248bfc212ef1ec34cb6e2fe43 Mon Sep 17 00:00:00 2001 From: L3D Date: Fri, 1 Jan 2021 06:02:28 +0100 Subject: [PATCH] waffeleskallation --- host_vars/web01.l3d.space.yml | 3 +++ .../nginx/sites/waffeln.eskalieren.jetzt_tls.conf | 14 ++++++++++++++ .../nginx/sites/waffeln.fehlerfrei.org_tls.conf | 14 ++++++++++++++ .../sites/www.waffeln.fehlerfrei.org_tls.conf | 14 ++++++++++++++ 4 files changed, 45 insertions(+) create mode 100644 templates/files/nginx/sites/waffeln.eskalieren.jetzt_tls.conf create mode 100644 templates/files/nginx/sites/waffeln.fehlerfrei.org_tls.conf create mode 100644 templates/files/nginx/sites/www.waffeln.fehlerfrei.org_tls.conf diff --git a/host_vars/web01.l3d.space.yml b/host_vars/web01.l3d.space.yml index 79d6f13..dc2d9b9 100644 --- a/host_vars/web01.l3d.space.yml +++ b/host_vars/web01.l3d.space.yml @@ -40,6 +40,9 @@ nginx_sites: - name: 'www.c3woc.eu' - name: 'c3woc.cn' - name: 'www.c3woc.cn' + - name: 'waffeln.eskalieren.jetzt' + - name: 'waffeln.fehlerfrei.org' + - name: 'www.waffeln.fehlerfrei.org' - name: 'l3d.space' - name: 'www.l3d.space' - name: 'ansible.l3d.space' diff --git a/templates/files/nginx/sites/waffeln.eskalieren.jetzt_tls.conf b/templates/files/nginx/sites/waffeln.eskalieren.jetzt_tls.conf new file mode 100644 index 0000000..2d0cdf4 --- /dev/null +++ b/templates/files/nginx/sites/waffeln.eskalieren.jetzt_tls.conf @@ -0,0 +1,14 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name waffeln.eskalieren.jetzt; + + 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://c3woc.de$request_uri; + } +} diff --git a/templates/files/nginx/sites/waffeln.fehlerfrei.org_tls.conf b/templates/files/nginx/sites/waffeln.fehlerfrei.org_tls.conf new file mode 100644 index 0000000..b203e30 --- /dev/null +++ b/templates/files/nginx/sites/waffeln.fehlerfrei.org_tls.conf @@ -0,0 +1,14 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name waffeln.fehlerfrei.org; + + 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://c3woc.de$request_uri; + } +} diff --git a/templates/files/nginx/sites/www.waffeln.fehlerfrei.org_tls.conf b/templates/files/nginx/sites/www.waffeln.fehlerfrei.org_tls.conf new file mode 100644 index 0000000..8c5b521 --- /dev/null +++ b/templates/files/nginx/sites/www.waffeln.fehlerfrei.org_tls.conf @@ -0,0 +1,14 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name www.waffeln.fehlerfrei.org; + + 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://c3woc.de$request_uri; + } +}