server {
listen 80;
server_name gamania.ru;
access_log /var/log/nginx/websocket-access.log;
error_log /var/log/nginx/websocket-error.log;
location /back {
proxy_pass http://127.0.0.1:4040;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
}
}