Files:
- server.js : Node Express proxy (at project root)
- package.json : includes start script "node server.js"
Instructions:
- Create a new GitHub repo and push these files to the repo root.
- In Render, create a new Web Service and connect to the GitHub repo.
- Use Start Command: npm start (or leave blank).
- Set environment variables if needed: SPOOF_USER_AGENT, SPOOF_REFERER, SPOOF_COOKIE
- Deploy and test:
- GET / => should return "HLS proxy running"
- /playlist?url= -> returns rewritten m3u8
- /seg?u= -> streams segments
Note: This repo puts server.js at the repo root to avoid Render path issues.