Skip to content

Instantly share code, notes, and snippets.

@huglester
Forked from sj26/nginx.conf
Created March 31, 2014 12:29
Show Gist options
  • Save huglester/9891227 to your computer and use it in GitHub Desktop.
Save huglester/9891227 to your computer and use it in GitHub Desktop.
daemon off;
error_log stderr;
events {
worker_connections 1024;
}
http {
# As suggested in http://nginx.org/en/docs/http/websocket.html
map $http_upgrade $connection_upgrade {
default upgrade;
"" close;
}
server {
listen 127.0.0.1:8080;
location / {
proxy_pass http://127.0.0.1:1080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment