-
Docker (Recommended)
- Install Docker
- Spin up the image
docker run --publish 80:80 energyhun24/bandwidth-hero-proxy:latest
-
SystemD service
- Clone the repository
https://github.com/energypatrikhu/bandwidth-hero-proxy.git /opt/bandwidth-hero-proxy
- cd into cloned repository
cd /opt/bandwidth-hero-proxy
- Install dependencies
npm install
- Build project
npm run build
- Start service
systemctl start bandwidth-hero-proxy-node.service
- (Optional) Enable service to run at startup
systemctl enable bandwidth-hero-proxy-node.service
- (Optional) Enable service to run at startup
- Clone the repository
-
PM2
- Install PM2 globally
npm install -g pm2
- Clone the repository
https://github.com/energypatrikhu/bandwidth-hero-proxy.git /opt/bandwidth-hero-proxy
- cd into cloned repository
cd /opt/bandwidth-hero-proxy
- Install dependencies
npm install
- Build project
npm run build
- Start pm2 script
pm2 start ecosystem.config.cjs
- (Optional) Save PM2 scripts
This is needed if PM2 autostart is enabled and you want to autostart currently running scripts
pm2 save
- (Optional) Enable PM2 to start at startup
pm2 startup
- (Optional) Save PM2 scripts
- Install PM2 globally