Skip to content

Instantly share code, notes, and snippets.

@alimozdemir
Created December 19, 2017 18:33
Show Gist options
  • Save alimozdemir/825e3ae1caaabb9d38d4895aa5c09277 to your computer and use it in GitHub Desktop.
Save alimozdemir/825e3ae1caaabb9d38d4895aa5c09277 to your computer and use it in GitHub Desktop.
server {
listen 80;
location / {
proxy_pass http://localhost:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
location /api/chat {
proxy_pass http://localhost:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment