Skip to content

Commit

Permalink
preview
Browse files Browse the repository at this point in the history
  • Loading branch information
DO1JLR committed Jul 7, 2021
1 parent d9a9d58 commit 31c79a3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
14 changes: 14 additions & 0 deletions host_vars/web01.l3d.space/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ users:
- [email protected]
- [email protected]

preview:
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]

sshd__allowed_users:
- "root"
- "ansible"
Expand All @@ -46,6 +54,7 @@ sshd__allowed_users:
- "gitea"
- "wtfpreview"
- "files"
- "preview"

sshd__allowed_groups:
- "root"
Expand All @@ -56,13 +65,15 @@ sshd__allowed_groups:
- "gitea"
- "wtfpreview"
- "files"
- "preview"

accounts:
- 'l3d'
- 'webwaffel'
- 'webwaffelpodcast'
- 'wtfpreview'
- "files"
- "preview"

nginx_sites:
- name: 'c3woc.de'
Expand Down Expand Up @@ -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 }}"

Expand Down
16 changes: 16 additions & 0 deletions templates/files/nginx/sites/preview.c3woc.de_tls.conf
Original file line number Diff line number Diff line change
@@ -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;
}
}

0 comments on commit 31c79a3

Please sign in to comment.