Skip to content

Instantly share code, notes, and snippets.

@jgonera
Created July 7, 2016 19:42
Show Gist options
  • Save jgonera/91aa8c1f4e38bf0169ccc3adc00be90c to your computer and use it in GitHub Desktop.
Save jgonera/91aa8c1f4e38bf0169ccc3adc00be90c to your computer and use it in GitHub Desktop.
upstream app {
server 127.0.0.1:3000;
}
server {
listen 80;
server_name localhost;
location / {
proxy_read_timeout 600;
proxy_pass http://app;
# What follows is required for WebSockets
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