22 lines
492 B
Nginx Configuration File
22 lines
492 B
Nginx Configuration File
|
|
server {
|
||
|
|
listen 80;
|
||
|
|
root /usr/share/nginx/html;
|
||
|
|
index index.html;
|
||
|
|
|
||
|
|
resolver 127.0.0.11 valid=10s;
|
||
|
|
|
||
|
|
location /ws {
|
||
|
|
set $server_upstream http://server:4474;
|
||
|
|
proxy_pass $server_upstream;
|
||
|
|
proxy_http_version 1.1;
|
||
|
|
proxy_set_header Upgrade $http_upgrade;
|
||
|
|
proxy_set_header Connection "upgrade";
|
||
|
|
proxy_set_header Host $host;
|
||
|
|
proxy_read_timeout 3600s;
|
||
|
|
}
|
||
|
|
|
||
|
|
location / {
|
||
|
|
try_files $uri $uri/ /index.html;
|
||
|
|
}
|
||
|
|
}
|