diff --git a/host_vars/web01.l3d.space/vars.yml b/host_vars/web01.l3d.space/vars.yml index 06988bf..429bff1 100644 --- a/host_vars/web01.l3d.space/vars.yml +++ b/host_vars/web01.l3d.space/vars.yml @@ -60,6 +60,8 @@ nginx_sites: - name: 'waffeln.eskalieren.jetzt' - name: 'waffeln.fehlerfrei.org' - name: 'www.waffeln.fehlerfrei.org' + - name: 'waffel.shop' + - name: 'www.waffel.shop' - name: 'l3d.space' - name: 'www.l3d.space' - name: 'ansible.l3d.space' @@ -68,6 +70,8 @@ nginx_sites: - name: 'www.l3d.yt' - name: 'l3d.ch' - name: 'www.l3d.ch' + - name: 'l3d.me' + - name: 'www.l3d.me' - name: 'podcast.c3woc.de' webroot: user: 'webwaffelpodcast' diff --git a/templates/files/nginx/sites/l3d.me_tls.conf b/templates/files/nginx/sites/l3d.me_tls.conf new file mode 100644 index 0000000..49694c6 --- /dev/null +++ b/templates/files/nginx/sites/l3d.me_tls.conf @@ -0,0 +1,14 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name l3d.me; + + 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/waffel.shop_tls.conf b/templates/files/nginx/sites/waffel.shop_tls.conf new file mode 100644 index 0000000..cf06887 --- /dev/null +++ b/templates/files/nginx/sites/waffel.shop_tls.conf @@ -0,0 +1,14 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name waffel.shop; + + 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/www.l3d.me_tls.conf b/templates/files/nginx/sites/www.l3d.me_tls.conf new file mode 100644 index 0000000..a2ae214 --- /dev/null +++ b/templates/files/nginx/sites/www.l3d.me_tls.conf @@ -0,0 +1,14 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name www.l3d.me; + + 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://l3d.me$request_uri; + } +} diff --git a/templates/files/nginx/sites/www.waffel.shop_tls.conf b/templates/files/nginx/sites/www.waffel.shop_tls.conf new file mode 100644 index 0000000..5e1482d --- /dev/null +++ b/templates/files/nginx/sites/www.waffel.shop_tls.conf @@ -0,0 +1,14 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name www.waffel.shop; + + 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://waffel.shop$request_uri; + } +}