Created
February 20, 2019 07:52
-
-
Save arefaslani/9a80678f1139917478dd26590cec5652 to your computer and use it in GitHub Desktop.
Nginx Express Configuration
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
server { | |
access_log /var/log/nginx/access.log upstream_time; | |
listen 8080; | |
server_name _; | |
location / { | |
# default port, could be changed if you use next with custom server | |
proxy_pass http://localhost:4000; | |
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