warren-bank / HLS-Proxy

Node.js server to proxy HLS video streams
http://webcast-reloaded.surge.sh/proxy.html
GNU General Public License v2.0
256 stars 80 forks source link

How to configure it on a vps? #33

Open kumultricks opened 1 year ago

kumultricks commented 1 year ago

I tried but not successful, please kindly brief the steps to setup and the right vps specs

warren-bank commented 1 year ago

the only requirement is a version is Node.js that meets the minimum spec, which depends on the major version you wish to run

warren-bank commented 1 year ago

as a super quick test that doesn't touch the globally installed modules directory.. this should work:

temp_dir=~/test/local-hls-proxy-instance
[ -d "$temp_dir" ] || mkdir -p "$temp_dir"
cd "$temp_dir"
npm init -y
npm install --save '@warren-bank/hls-proxy'
./node_modules/.bin/hlsd --port 8080 --req-insecure -v 1