Skip to content

Instantly share code, notes, and snippets.

@mikelikespie
Created December 31, 2011 00:14
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mikelikespie/1542161 to your computer and use it in GitHub Desktop.
Save mikelikespie/1542161 to your computer and use it in GitHub Desktop.
using nginx as a websocket reverse proxy
location / {
chunked_transfer_encoding off;
proxy_http_version 1.1;
proxy_pass http://localhost:9001;
proxy_buffering off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host:9001;
proxy_set_header Connection "Upgrade";
proxy_set_header Upgrade websocket;
}
@levshx
Copy link

levshx commented Dec 9, 2022

why does the websocket have a limit on the frequency of sending messages in one second?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment