From f7d817f74b6ff4974e1b9ffb690c24839b037f69 Mon Sep 17 00:00:00 2001 From: L3D Date: Thu, 24 Dec 2020 01:36:49 +0100 Subject: [PATCH] adding c3woc.eu --- host_vars/web01.l3d.space.yml | 2 ++ templates/files/nginx/sites/c3woc.eu_tls.conf | 16 ++++++++++++++++ .../files/nginx/sites/www.c3woc.eu_tls.conf | 14 ++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 templates/files/nginx/sites/c3woc.eu_tls.conf create mode 100644 templates/files/nginx/sites/www.c3woc.eu_tls.conf diff --git a/host_vars/web01.l3d.space.yml b/host_vars/web01.l3d.space.yml index 9100bad..c2239e6 100644 --- a/host_vars/web01.l3d.space.yml +++ b/host_vars/web01.l3d.space.yml @@ -25,6 +25,8 @@ nginx_sites: webroot: user: 'webwaffel' - name: 'www.c3woc.org' + - name: 'c3woc.eu' + - name: 'www.c3woc.eu' acme_notification_email: "acme_{{ inventory_hostname }}@l3d.yt" diff --git a/templates/files/nginx/sites/c3woc.eu_tls.conf b/templates/files/nginx/sites/c3woc.eu_tls.conf new file mode 100644 index 0000000..dc1e4d5 --- /dev/null +++ b/templates/files/nginx/sites/c3woc.eu_tls.conf @@ -0,0 +1,16 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name c3woc.eu; + + include snippets/tls_parameters_{{ site.name }}.snippet.conf; + include snippets/tls_certificate_{{ site.name }}.snippet.conf; + include snippets/logging_{{ site.name }}.snippet.conf; + + root /srv/www/c3woc.org; + + location / { + try_files $uri $uri/ =404; + } +} diff --git a/templates/files/nginx/sites/www.c3woc.eu_tls.conf b/templates/files/nginx/sites/www.c3woc.eu_tls.conf new file mode 100644 index 0000000..117a2b9 --- /dev/null +++ b/templates/files/nginx/sites/www.c3woc.eu_tls.conf @@ -0,0 +1,14 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name www.c3woc.eu; + + 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.eu$request_uri; + } +}