@DownPW The reverse proxy is relatively simple. I’m using the below
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://127.0.0.1:8061/;
proxy_redirect off;
# Socket.IO Support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
If you’re not running MemCached
or Redis
then you can ignore the cache part and just use the NodeJS
defaults. I much prefer PM2 as this provides greater flexibility and control (in my view)
Below output from pm2 status