From 7f10dc67454e2e49f958d799f56267d14e3cb5c3 Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 29 Nov 2021 01:40:10 +0100 Subject: [PATCH] redirect to THE LAEND --- host_vars/web01.l3d.space/vars.yml | 2 ++ .../sites/thelaend.xn--see-br-0xa.se_tls.conf | 30 +++++++++++++++++++ .../www.thelaend.xn--see-br-0xa.se_tls.conf | 30 +++++++++++++++++++ .../nginx/sites/xn--see-br-0xa.se_tls.conf | 16 ++++++++++ 4 files changed, 78 insertions(+) create mode 100644 templates/files/nginx/sites/thelaend.xn--see-br-0xa.se_tls.conf create mode 100644 templates/files/nginx/sites/www.thelaend.xn--see-br-0xa.se_tls.conf diff --git a/host_vars/web01.l3d.space/vars.yml b/host_vars/web01.l3d.space/vars.yml index 4f06d41..3812c8e 100644 --- a/host_vars/web01.l3d.space/vars.yml +++ b/host_vars/web01.l3d.space/vars.yml @@ -134,6 +134,8 @@ nginx_sites: webroot: user: 'see' - name: 'www.xn--see-br-0xa.se' + - name: 'thelaend.xn--see-br-0xa.se' + - name: 'www.thelaend.xn--see-br-0xa.se' acme_notification_email: "{{ _acme_notification_email }}" diff --git a/templates/files/nginx/sites/thelaend.xn--see-br-0xa.se_tls.conf b/templates/files/nginx/sites/thelaend.xn--see-br-0xa.se_tls.conf new file mode 100644 index 0000000..7375b47 --- /dev/null +++ b/templates/files/nginx/sites/thelaend.xn--see-br-0xa.se_tls.conf @@ -0,0 +1,30 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name thelaend.xn--see-br-0xa.se thelaend.see-bör.se; + + 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://github.com/thelaend/; + } +} + +# redirect UTF-8 encoded domain... just in case +server { + listen 80; + listen [::]:80; + + server_name thelaend.see-bör.se; + + include snippets/logging_{{ site.name }}.snippet.conf; + + include snippets/acmetool.snippet.conf; + + location ^~ / { + return 308 https://thelaend.xn--see-br-0xa.se$request_uri; + } +} diff --git a/templates/files/nginx/sites/www.thelaend.xn--see-br-0xa.se_tls.conf b/templates/files/nginx/sites/www.thelaend.xn--see-br-0xa.se_tls.conf new file mode 100644 index 0000000..47de3f9 --- /dev/null +++ b/templates/files/nginx/sites/www.thelaend.xn--see-br-0xa.se_tls.conf @@ -0,0 +1,30 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name www.thelaend.xn--see-br-0xa.se www.thelaend.see-bör.se; + + 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://thelaend.xn--see-br-0xa.se$request_uri; + } +} + +# redirect UTF-8 encoded domain... just in case +server { + listen 80; + listen [::]:80; + + server_name www.thelaend.see-bör.se; + + include snippets/logging_{{ site.name }}.snippet.conf; + + include snippets/acmetool.snippet.conf; + + location ^~ / { + return 308 https://thelaend.xn--see-br-0xa.se$request_uri; + } +} diff --git a/templates/files/nginx/sites/xn--see-br-0xa.se_tls.conf b/templates/files/nginx/sites/xn--see-br-0xa.se_tls.conf index b10b300..954e49f 100644 --- a/templates/files/nginx/sites/xn--see-br-0xa.se_tls.conf +++ b/templates/files/nginx/sites/xn--see-br-0xa.se_tls.conf @@ -17,3 +17,19 @@ server { try_files $uri $uri/ =404; } } + +# redirect UTF-8 encoded domain... just in case +server { + listen 80; + listen [::]:80; + + server_name see-bör.se; + + include snippets/logging_{{ site.name }}.snippet.conf; + + include snippets/acmetool.snippet.conf; + + location ^~ / { + return 308 https://xn--see-br-0xa.se$request_uri; + } +}