Skip to content

Instantly share code, notes, and snippets.

@crackedmind
Created August 13, 2015 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crackedmind/ff06db3774f1ba5674f2 to your computer and use it in GitHub Desktop.
Save crackedmind/ff06db3774f1ba5674f2 to your computer and use it in GitHub Desktop.
nginx-sample
uppstream ws_one {
ip_hash;
server localhost:9292;
server localhost:9293;
}
server {
server_name ws.one.domain.ru;
location / {
proxy_pass http://ws_one;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment