Proxy m3u8 files through pure JavaScript.
This proxy requires a CORS proxy. You can input it into the .env
file or in the API
constructor. NodeJS version 16+ is also required to run.
- Clone the repository.
git clone https://github.com/Eltik/M3U8-Proxy.git
- Run
npm i
. - Run
npm run build
. - Run
npm start
ornpm start:pm2
if you want to use pm2.
You can configure how the proxy works via a .env
file; it's relatively self-explanatory.
CORS_PROXY="https://cors.consumet.stream"
WEB_SERVER_URL="http://localhost:3060"
WEB_SERVER_PORT="3060"
Inspired by this repository. I received some help from chaycee as well.