Created
February 25, 2020 19:12
-
-
Save iamendy/66a55418afde2d18ca983363a21517a2 to your computer and use it in GitHub Desktop.
My default node apps nginx config
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{ | |
#root /var/www/maintain/; | |
index index.html index.htm; | |
server_name domain_name; | |
location / { | |
proxy_pass http://your.ip.address.here:port_no; | |
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