-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path002-app.conf
47 lines (43 loc) · 1.42 KB
/
002-app.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
server {
server_name app.garfay.com;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/garfay.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/garfay.com/privkey.pem; # managed by Certbot
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto http;
proxy_set_header X-NginX-Proxy true;
proxy_set_header Host $http_host:$server_port;
proxy_pass http://127.0.0.1:5183;
proxy_cookie_domain garfay.com $host;
proxy_ssl_session_reuse on;
proxy_cache_bypass $http_upgrade;
proxy_redirect off;
}
location /wsapp/ {
proxy_pass http://127.0.0.1:5183;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
}
server {
server_name app.garfay.com;
listen 8443 ssl;
ssl_certificate /etc/letsencrypt/live/garfay.com/cert.pem;
ssl_certificate_key /etc/letsencrypt/live/garfay.com/privkey.pem;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto http;
proxy_set_header X-NginX-Proxy true;
proxy_set_header Host $http_host:$server_port;
proxy_pass http://127.0.0.1:1347;
proxy_cookie_domain garfay.com $host;
proxy_ssl_session_reuse on;
proxy_cache_bypass $http_upgrade;
proxy_redirect off;
}
}