socket.io first attempt
This commit is contained in:
parent
5a905a1239
commit
cf6f3145b6
9 changed files with 4901 additions and 7 deletions
|
|
@ -2,3 +2,17 @@
|
|||
location /api/chat/ {
|
||||
proxy_pass http://chat;
|
||||
}
|
||||
|
||||
location /api/socket.io/ {
|
||||
|
||||
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;
|
||||
root /volumes/static/chat;
|
||||
proxy_pass http://chat$uri;
|
||||
# proxy_pass http://chat;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue