Created
August 28, 2017 14:41
-
-
Save pepzwee/2e1f4e0f7f9ec29c7dfca8fabd48dfa5 to your computer and use it in GitHub Desktop.
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 { | |
listen 80; | |
listen [::]:80; | |
server_name <domain name>; | |
root <files location>; | |
location / { | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header Host $http_host; | |
proxy_pass http://127.0.0.1:<port>; | |
} | |
location /socket.io/ { | |
proxy_pass http://127.0.0.1:<port>; | |
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
Change these values
<domain name>
Example:
csg0.trade www.csg0.trade
<files location>
Example:
/home/csg0.trade
<port>
Example:
8080