Skip to content

Instantly share code, notes, and snippets.

@arefaslani
Created February 20, 2019 07:52
Show Gist options
  • Save arefaslani/9a80678f1139917478dd26590cec5652 to your computer and use it in GitHub Desktop.
Save arefaslani/9a80678f1139917478dd26590cec5652 to your computer and use it in GitHub Desktop.
Nginx Express Configuration
server {
access_log /var/log/nginx/access.log upstream_time;
listen 8080;
server_name _;
location / {
# default port, could be changed if you use next with custom server
proxy_pass http://localhost:4000;
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