diff --git a/host_vars/web01.l3d.space/vars.yml b/host_vars/web01.l3d.space/vars.yml index 9759339..0715242 100644 --- a/host_vars/web01.l3d.space/vars.yml +++ b/host_vars/web01.l3d.space/vars.yml @@ -121,6 +121,10 @@ nginx_sites: webroot: user: 'winkekatze' - name: 'www.aalen-geekend-23.winkekatze.tv' + - name: 'fsck-2024.winkekatze.tv' + webroot: + user: 'winkekatze' + - name: 'www.fsck-2024.winkekatze.tv' - name: 'winkekatze.tv' webroot: user: 'winkekatze' diff --git a/templates/files/nginx/sites/fsck-2024.winkekatze.tv_tls.conf b/templates/files/nginx/sites/fsck-2024.winkekatze.tv_tls.conf new file mode 100644 index 0000000..41322ae --- /dev/null +++ b/templates/files/nginx/sites/fsck-2024.winkekatze.tv_tls.conf @@ -0,0 +1,17 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name fsck-2024.winkekatze.tv; + + 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/fsck-2024.winkekatze.tv; + + location / { + charset utf-8; + try_files $uri $uri/ =404; + } +} diff --git a/templates/files/nginx/sites/www.fsck-2024.winkekatze.tv_tls.conf b/templates/files/nginx/sites/www.fsck-2024.winkekatze.tv_tls.conf new file mode 100644 index 0000000..b350e41 --- /dev/null +++ b/templates/files/nginx/sites/www.fsck-2024.winkekatze.tv_tls.conf @@ -0,0 +1,14 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name www.fsck-2024.winkekatze.tv; + + 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://fsck-2024.winkekatze.tv$request_uri; + } +}