A streamlined (~50 line) version of csp-endpoint. This version is meant to be run in a cross-platform and robust manner by the PM2 Node.js process manager and features minimal setup time, Windows support, scaleability, automatic upkeep, DoS protection, and logging.
- Save csp-endpoint.js (Right-click, Save link as...)
- Install Node
- Open Terminal and install packages:
npm install -g express ddos pm2
- Generate startup installation command, then run it as directed:
pm2 startup
- Start a cluster of csp-endpoint processes (change
max
to1
for a single process, etc.) and save them for startup on reboot:
pm2 start /PATH/TO/csp-endpoint.js -i max
pm2 save
- Save csp-endpoint.js (Right-click, Save link as...)
- Install Node
- Open PowerShell and install packages:
npm install -g express ddos pm2 pm2-windows-startup
pm2-startup install
- Start a cluster of csp-endpoint processes (change
max
to1
for a single process, etc.) and save them for startup on reboot:
pm2 start C:\PATH\TO\csp-endpoint.js -i max
pm2 save
Logs are available in [HOMEDIR]\.pm2\logs\
Automatic log rotation is supported for Linux but can't be enabled on Windows until this issue is released; current fix is "pending release".
ISC