From 41a49827863b7e5f1576e1c5a2e4970e44879791 Mon Sep 17 00:00:00 2001 From: L3D Date: Sat, 16 Jan 2021 23:26:24 +0100 Subject: [PATCH] Add new domains without own content --- host_vars/web01.l3d.space/vars.yml | 4 ++++ templates/files/nginx/sites/c3doc.de_tls.conf | 14 ++++++++++++++ templates/files/nginx/sites/c3nom.de_tls.conf | 14 ++++++++++++++ templates/files/nginx/sites/www.c3doc.de_tls.conf | 14 ++++++++++++++ templates/files/nginx/sites/www.c3nom.de_tls.conf | 14 ++++++++++++++ 5 files changed, 60 insertions(+) create mode 100644 templates/files/nginx/sites/c3doc.de_tls.conf create mode 100644 templates/files/nginx/sites/c3nom.de_tls.conf create mode 100644 templates/files/nginx/sites/www.c3doc.de_tls.conf create mode 100644 templates/files/nginx/sites/www.c3nom.de_tls.conf diff --git a/host_vars/web01.l3d.space/vars.yml b/host_vars/web01.l3d.space/vars.yml index 19d408c..242fa80 100644 --- a/host_vars/web01.l3d.space/vars.yml +++ b/host_vars/web01.l3d.space/vars.yml @@ -65,6 +65,10 @@ nginx_sites: - name: 'www.einhornsystem.de' - name: 'backwesen.de' - name: 'www.backwesen.de' + - name: 'c3nom.de' + - name: 'www.c3nom.de' + - name: 'c3doc.de' + - name: 'www.c3doc.de' acme_notification_email: "{{ _acme_notification_email }}" diff --git a/templates/files/nginx/sites/c3doc.de_tls.conf b/templates/files/nginx/sites/c3doc.de_tls.conf new file mode 100644 index 0000000..f461685 --- /dev/null +++ b/templates/files/nginx/sites/c3doc.de_tls.conf @@ -0,0 +1,14 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name c3doc.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 418; + } +} diff --git a/templates/files/nginx/sites/c3nom.de_tls.conf b/templates/files/nginx/sites/c3nom.de_tls.conf new file mode 100644 index 0000000..d6167af --- /dev/null +++ b/templates/files/nginx/sites/c3nom.de_tls.conf @@ -0,0 +1,14 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name c3nom.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://c3woc.de$request_uri; + } +} diff --git a/templates/files/nginx/sites/www.c3doc.de_tls.conf b/templates/files/nginx/sites/www.c3doc.de_tls.conf new file mode 100644 index 0000000..d741529 --- /dev/null +++ b/templates/files/nginx/sites/www.c3doc.de_tls.conf @@ -0,0 +1,14 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name www.c3doc.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://c3doc.de$request_uri; + } +} diff --git a/templates/files/nginx/sites/www.c3nom.de_tls.conf b/templates/files/nginx/sites/www.c3nom.de_tls.conf new file mode 100644 index 0000000..b168b4f --- /dev/null +++ b/templates/files/nginx/sites/www.c3nom.de_tls.conf @@ -0,0 +1,14 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name www.c3nom.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://c3nom.de$request_uri; + } +}