Skip to content

Instantly share code, notes, and snippets.

@dr-dimitru
Created October 28, 2013 00:49
Show Gist options
  • Save dr-dimitru/7189751 to your computer and use it in GitHub Desktop.
Save dr-dimitru/7189751 to your computer and use it in GitHub Desktop.
Simplest way for Nginx as Node.js reverse proxy [CONFIG]
server {
listen 80;
server_name domain.com;
location / {
proxy_pass http://mystream;
proxy_set_header Host $http_host;
}
}
upstream mystream {
server __IP_ADDRESS_OF_YOUR_SERVER__:3000;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment