Created
April 13, 2022 04:08
-
-
Save anoochit/bc51920eda1b91f187e808f18d27b721 to your computer and use it in GitHub Desktop.
nginx reverse proxy script for vue frontend for mars blockchain
This file contains 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
.. | |
location / { | |
# First attempt to serve request as file, then | |
# as directory, then fall back to displaying a 404. | |
#try_files $uri $uri/ =404; | |
proxy_pass http://localhost:3000/; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "Upgrade"; | |
} | |
.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment