From 058a4bf9f862cd4ce478ef8555cee673917b1b54 Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 4 Jan 2021 04:34:58 +0100 Subject: [PATCH] more unicorns --- host_vars/web01.l3d.space/vars.yml | 2 ++ .../files/nginx/sites/www.angel.systems_tls.conf | 14 ++++++++++++++ .../nginx/sites/www.einhornsystem.de_tls.conf | 14 ++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 templates/files/nginx/sites/www.angel.systems_tls.conf create mode 100644 templates/files/nginx/sites/www.einhornsystem.de_tls.conf diff --git a/host_vars/web01.l3d.space/vars.yml b/host_vars/web01.l3d.space/vars.yml index 90befdc..e1ba91d 100644 --- a/host_vars/web01.l3d.space/vars.yml +++ b/host_vars/web01.l3d.space/vars.yml @@ -60,7 +60,9 @@ nginx_sites: - name: 'podcast.c3woc.eu' - name: 'www.podcast.c3woc.eu' - name: 'angel.systems' + - name: 'www.angel.systems' - name: 'einhornsystem.de' + - name: 'www.einhornsystem.de' acme_notification_email: "{{ _acme_notification_email }}" diff --git a/templates/files/nginx/sites/www.angel.systems_tls.conf b/templates/files/nginx/sites/www.angel.systems_tls.conf new file mode 100644 index 0000000..5a73ab3 --- /dev/null +++ b/templates/files/nginx/sites/www.angel.systems_tls.conf @@ -0,0 +1,14 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name www.angel.systems; + + 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://engelsystem.de/; + } +} diff --git a/templates/files/nginx/sites/www.einhornsystem.de_tls.conf b/templates/files/nginx/sites/www.einhornsystem.de_tls.conf new file mode 100644 index 0000000..a21cade --- /dev/null +++ b/templates/files/nginx/sites/www.einhornsystem.de_tls.conf @@ -0,0 +1,14 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name www.einhornsystem.de; + + 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://engelsystem.de/; + } +}