Last active
August 13, 2019 12:31
-
-
Save samjoshuva/cbc9994ed6298ba0783490462d572b0f to your computer and use it in GitHub Desktop.
deploy node in nginx
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
| 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