Skip to content

Instantly share code, notes, and snippets.

@pepzwee
Created August 28, 2017 14:41
Show Gist options
  • Save pepzwee/2e1f4e0f7f9ec29c7dfca8fabd48dfa5 to your computer and use it in GitHub Desktop.
Save pepzwee/2e1f4e0f7f9ec29c7dfca8fabd48dfa5 to your computer and use it in GitHub Desktop.
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";
}
}
@pepzwee
Copy link
Author

pepzwee commented Aug 28, 2017

Change these values

<domain name>
Example: csg0.trade www.csg0.trade

<files location>
Example: /home/csg0.trade

<port>
Example: 8080

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment