diff options
Diffstat (limited to 'roles/web/templates/sites/1314233.conf.j2')
-rw-r--r-- | roles/web/templates/sites/1314233.conf.j2 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/roles/web/templates/sites/1314233.conf.j2 b/roles/web/templates/sites/1314233.conf.j2 new file mode 100644 index 0000000..57994ee --- /dev/null +++ b/roles/web/templates/sites/1314233.conf.j2 @@ -0,0 +1,22 @@ +{% set domain = "1314233.xyz" %} +{% set domain_new = "233233.xyz" %} +# +# Nignx/sites: 1314233.conf +# Redirect {{ domain }} to {{ domain_new }} +# +# Aaron LI +# + +{% if domains_hascert[domain] %} +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + server_name {{ domain }} *.{{ domain }}; + + # SSL/TLS Certificate kindly provided by Let's Encrypt + ssl_certificate /usr/local/etc/ssl/acme/{{ domain }}/fullchain.pem; + ssl_certificate_key /usr/local/etc/ssl/acme/private/{{ domain }}.pem; + + return 301 $scheme://{{ domain_new }}$request_uri; +} +{% endif %} |