-
Notifications
You must be signed in to change notification settings - Fork 1
/
nginx.conf
53 lines (41 loc) · 1.26 KB
/
nginx.conf
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
53
server {
server_name t-rust.com www.t-rust.com tearust.com www.tearust.com;
rewrite ^/(.*)$ https://teaproject.org/$1 permanent;
}
server {
listen 80;
server_name teaproject.org www.teaproject.org;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/teaproject.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/teaproject.org/privkey.pem;
location / {
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://64.227.49.206:90;
}
location /api {
proxy_pass http://64.227.49.206:3001;
}
# location /pdf {
# proxy_pass http://64.227.49.206:3001;
# }
# location /res {
# proxy_pass http://64.227.49.206:3001;
# }
if ($scheme != "https") {
return 301 https://$host$request_uri;
}
}
server {
listen 80;
server_name gluonwallet.com www.gluonwallet.com;
location /{
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://64.227.49.206:91;
}
}