Skip to content

Instantly share code, notes, and snippets.

@pprathameshmore
Last active April 19, 2020 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pprathameshmore/3977339ee65b0dc0931c54166edaa25d to your computer and use it in GitHub Desktop.
Save pprathameshmore/3977339ee65b0dc0931c54166edaa25d to your computer and use it in GitHub Desktop.
worker_processes 1;
http {
upstream nodejs-backend {
server localhost:4000;
}
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
location / {
proxy_set_header nginx_demo true;
proxy_pass http://nodejs-backend;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment