blob: b1fb481e21afe4419f255e268233979385c5c29a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{% set domain = "aaronly.me" %}
{% set domain_new = "liwt.net" %}
#
# Nignx/sites: aaronly.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 %}
|