From 9692e18718cc56e00615f18cd986dc9a291e0bbb Mon Sep 17 00:00:00 2001 From: L3D Date: Fri, 26 Apr 2024 22:53:08 +0200 Subject: [PATCH] Adding fsck-2024.winkekatze.tv --- host_vars/web01.l3d.space/vars.yml | 4 ++++ .../sites/fsck-2024.winkekatze.tv_tls.conf | 17 +++++++++++++++++ .../sites/www.fsck-2024.winkekatze.tv_tls.conf | 14 ++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 templates/files/nginx/sites/fsck-2024.winkekatze.tv_tls.conf create mode 100644 templates/files/nginx/sites/www.fsck-2024.winkekatze.tv_tls.conf 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; + } +}