Skip to content

Commit

Permalink
c3woc.org improved
Browse files Browse the repository at this point in the history
  • Loading branch information
DO1JLR committed Dec 24, 2020
1 parent ece0352 commit 43a76e4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
2 changes: 2 additions & 0 deletions host_vars/web01.l3d.space.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@ nginx_sites:
- name: 'c3woc.org'
webroot:
user: 'webwaffel'
- name: 'www.c3woc.org'


acme_notification_email: "acme_{{ inventory_hostname }}@l3d.yt"
8 changes: 1 addition & 7 deletions templates/files/nginx/sites/c3woc.org_tls.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,9 @@ server {
include snippets/tls_certificate_{{ site.name }}.snippet.conf;
include snippets/logging_{{ site.name }}.snippet.conf;

root /srv/www/files.chvoc.ch;
root /srv/www/c3woc.org;

location / {
try_files $uri $uri/ =404;
}

location /files/foobarach1xa/ {
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
}
}
14 changes: 14 additions & 0 deletions templates/files/nginx/sites/www.c3woc.org_tls.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;

server_name www.c3woc.org;

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://c3woc.org$request_uri;
}
}

0 comments on commit 43a76e4

Please sign in to comment.