1
0
Fork 0
mirror of https://github.com/DO1JLR/ansible_playbook_servers.git synced 2024-09-14 19:53:56 +02:00
This commit is contained in:
L3D 2020-12-24 01:41:58 +01:00
parent f7d817f74b
commit e4d3322cca
Signed by: l3d
GPG key ID: CD08445BFF4313D1
4 changed files with 31 additions and 3 deletions

View file

@ -27,6 +27,8 @@ nginx_sites:
- name: 'www.c3woc.org' - name: 'www.c3woc.org'
- name: 'c3woc.eu' - name: 'c3woc.eu'
- name: 'www.c3woc.eu' - name: 'www.c3woc.eu'
- name: 'c3woc.cn'
- name: 'www.c3woc.cn'
acme_notification_email: "acme_{{ inventory_hostname }}@l3d.yt" acme_notification_email: "acme_{{ inventory_hostname }}@l3d.yt"

View file

@ -0,0 +1,14 @@
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name c3woc.cn;
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;
}
}

View file

@ -8,9 +8,7 @@ server {
include snippets/tls_certificate_{{ site.name }}.snippet.conf; include snippets/tls_certificate_{{ site.name }}.snippet.conf;
include snippets/logging_{{ site.name }}.snippet.conf; include snippets/logging_{{ site.name }}.snippet.conf;
root /srv/www/c3woc.org;
location / { location / {
try_files $uri $uri/ =404; return 308 https://c3woc.org$request_uri;
} }
} }

View file

@ -0,0 +1,14 @@
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name www.c3woc.cn;
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;
}
}