From 31c79a3c085bb23a5c1b2031cd04da959f0fde27 Mon Sep 17 00:00:00 2001 From: L3D Date: Thu, 8 Jul 2021 01:57:49 +0200 Subject: [PATCH] preview --- host_vars/web01.l3d.space/vars.yml | 14 ++++++++++++++ .../files/nginx/sites/preview.c3woc.de_tls.conf | 16 ++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 templates/files/nginx/sites/preview.c3woc.de_tls.conf diff --git a/host_vars/web01.l3d.space/vars.yml b/host_vars/web01.l3d.space/vars.yml index 71fe94c..0c93762 100644 --- a/host_vars/web01.l3d.space/vars.yml +++ b/host_vars/web01.l3d.space/vars.yml @@ -37,6 +37,14 @@ users: - l3d@backup-rsa.l3d.yt - l3d@business.wingcon.com + preview: + - l3d@pinkie.l3d.yt + - l3d@mobile.l3d.yt + - l3d@backup.l3d.yt + - l3d@derpy.l3d.yt + - l3d@backup-rsa.l3d.yt + - l3d@business.wingcon.com + sshd__allowed_users: - "root" - "ansible" @@ -46,6 +54,7 @@ sshd__allowed_users: - "gitea" - "wtfpreview" - "files" + - "preview" sshd__allowed_groups: - "root" @@ -56,6 +65,7 @@ sshd__allowed_groups: - "gitea" - "wtfpreview" - "files" + - "preview" accounts: - 'l3d' @@ -63,6 +73,7 @@ accounts: - 'webwaffelpodcast' - 'wtfpreview' - "files" + - "preview" nginx_sites: - name: 'c3woc.de' @@ -127,6 +138,9 @@ nginx_sites: webroot: user: 'files' - name: 'www.files.l3d.ch' + - name: 'preview.c3woc.de' + webroot: + user: 'preview' acme_notification_email: "{{ _acme_notification_email }}" diff --git a/templates/files/nginx/sites/preview.c3woc.de_tls.conf b/templates/files/nginx/sites/preview.c3woc.de_tls.conf new file mode 100644 index 0000000..cb140d5 --- /dev/null +++ b/templates/files/nginx/sites/preview.c3woc.de_tls.conf @@ -0,0 +1,16 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name c3woc.de; + + 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/preview.c3woc.de; + + location / { + try_files $uri $uri/ =404; + } +}