forked from tonistiigi/pangalink.net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpangalink.indoorsman.ee.nginx
52 lines (39 loc) · 1.29 KB
/
pangalink.indoorsman.ee.nginx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name pangalink.indoorsman.ee;
# SSL
ssl_certificate /etc/letsencrypt/live/pangalink.indoorsman.ee/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/pangalink.indoorsman.ee/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/pangalink.indoorsman.ee/chain.pem;
# security
include nginxconfig.io/security.conf;
# reverse proxy
location / {
proxy_pass http://127.0.0.1:8001;
include nginxconfig.io/proxy.conf;
}
# additional config
include nginxconfig.io/general.conf;
}
# subdomains redirect
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name *.pangalink.indoorsman.ee;
# SSL
ssl_certificate /etc/letsencrypt/live/pangalink.indoorsman.ee/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/pangalink.indoorsman.ee/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/pangalink.indoorsman.ee/chain.pem;
return 301 https://pangalink.indoorsman.ee$request_uri;
}
# HTTP redirect
server {
listen 80;
listen [::]:80;
server_name .pangalink.indoorsman.ee;
include nginxconfig.io/letsencrypt.conf;
location / {
return 301 https://pangalink.indoorsman.ee$request_uri;
}
}