Chat Room
root@iZhp3hnf627**4chl22p1Z:/etc/nginx/conf.d# cat i**chatroom.conf
server {
listen 80;
server_name 39.***.***.***;
root /usr/webchat/static;
index testLogin.html;
keepalive_timeout 70; #
location / {
proxy_pass http://127.0.0.1:8777;
proxy_set_header X-Real-IP $remote_addr;
}
location /static {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:8777;
}
location /apiv1.0 {
proxy_pass http://127.0.0.1:8777;
}
location /ws {
proxy_pass http://127.0.0.1:8777;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}