-
Notifications
You must be signed in to change notification settings - Fork 7
/
nginx.conf
25 lines (22 loc) · 948 Bytes
/
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
server {
root /var/www/teststake.xend.finance;
index index.html index.htm index.nginx-debian.html;
server_name teststake.xend.finance;
error_log /var/log/nginx/teststake.xend.finance.error_log error;
access_log /var/log/nginx/teststake.xend.finance.access_log combined;
location / {
try_files $uri @proxy;
}
location @proxy{
proxy_pass http://127.0.0.1:3000;
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS, DELETE, PATCH, PUT';
add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
proxy_set_header Host $host;
proxy_set_header X-Real-Ip $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_cache_bypass $http_upgrade;
}
}