Created
July 7, 2016 19:42
-
-
Save jgonera/91aa8c1f4e38bf0169ccc3adc00be90c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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