diff --git a/host_vars/web01.l3d.space.yml b/host_vars/web01.l3d.space.yml index ad2a3c9..e8d387d 100644 --- a/host_vars/web01.l3d.space.yml +++ b/host_vars/web01.l3d.space.yml @@ -47,6 +47,12 @@ nginx_sites: - name: 'podcast.c3woc.de' webroot: user: 'webwaffelpodcast' + - name: 'www.podcast.c3woc.de' + - name: 'podcast.c3woc.org' + - name: 'www.podcast.c3woc.org' + - name: 'podcast.c3vvoc.de' + - name: 'www.podcast.c3vvoc.de' + acme_notification_email: "acme_{{ inventory_hostname }}@l3d.yt" diff --git a/templates/files/nginx/sites/podcast.c3vvoc.de_tls.conf b/templates/files/nginx/sites/podcast.c3vvoc.de_tls.conf new file mode 100644 index 0000000..ba8ff8d --- /dev/null +++ b/templates/files/nginx/sites/podcast.c3vvoc.de_tls.conf @@ -0,0 +1,14 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name www.podcast.c3vvoc.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://podcast.c3woc.de$request_uri; + } +} diff --git a/templates/files/nginx/sites/podcast.c3woc.eu_tls.conf b/templates/files/nginx/sites/podcast.c3woc.eu_tls.conf new file mode 100644 index 0000000..b454cd1 --- /dev/null +++ b/templates/files/nginx/sites/podcast.c3woc.eu_tls.conf @@ -0,0 +1,14 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name podcast.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://podcast.c3woc.de$request_uri; + } +} diff --git a/templates/files/nginx/sites/www.podcast.c3vvoc.de_tls.conf b/templates/files/nginx/sites/www.podcast.c3vvoc.de_tls.conf new file mode 100644 index 0000000..c6d5e6f --- /dev/null +++ b/templates/files/nginx/sites/www.podcast.c3vvoc.de_tls.conf @@ -0,0 +1,14 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name podcast.c3vvoc.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://podcast.c3woc.de$request_uri; + } +} diff --git a/templates/files/nginx/sites/www.podcast.c3woc.eu_tls.conf b/templates/files/nginx/sites/www.podcast.c3woc.eu_tls.conf new file mode 100644 index 0000000..dc42ea4 --- /dev/null +++ b/templates/files/nginx/sites/www.podcast.c3woc.eu_tls.conf @@ -0,0 +1,14 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name www.podcast.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://podcast.c3woc.de$request_uri; + } +}