Skip to content

Instantly share code, notes, and snippets.

@samjoshuva
Last active August 13, 2019 12:31
Show Gist options
  • Select an option

  • Save samjoshuva/cbc9994ed6298ba0783490462d572b0f to your computer and use it in GitHub Desktop.

Select an option

Save samjoshuva/cbc9994ed6298ba0783490462d572b0f to your computer and use it in GitHub Desktop.
deploy node in nginx
server {
listen 80;
listen [::]:80;
root /var/www/interview-panel-build;
index index.html index.htm index.nginx-debian.html;
server_name interview-panel.com www.interview-panel.com;
location / {
try_files $uri $uri/ /index.html =404;
}
location /api/ {
pass_proxy http://localhost:5000
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment