Skip to content

Instantly share code, notes, and snippets.

@Unitech
Created January 21, 2015 21:49
Show Gist options
  • Select an option

  • Save Unitech/e4d40ca3272897fd817b to your computer and use it in GitHub Desktop.

Select an option

Save Unitech/e4d40ca3272897fd817b to your computer and use it in GitHub Desktop.
location /socket.io {
proxy_pass http://vsapi;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_read_timeout 20s;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment