-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnginx.conf
More file actions
38 lines (30 loc) · 854 Bytes
/
nginx.conf
File metadata and controls
38 lines (30 loc) · 854 Bytes
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
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
listen [::]:80;
# set your own server name
server_name _;
location / {
root /var/www/html/;
index index.html;
}
location /ws/eod {
proxy_pass http://localhost:8787;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
# uncomment these if you need ssl support
# listen 443 ssl;
# listen [::]:443 ssl;
# ssl on;
# change cert location to your own
# ssl_certificate /var/www/cert/cert.crt;
# ssl_certificate_key /var/www/cert/key.key;
}