0.0.5 • Published 3 years ago
@mish-tv/m3u8-query-proxy v0.0.5
Usage
npm install -g @mish-tv/m3u8-query-proxy@0.0.5
M3U8_ORIGIN="https://cdn.example.com" REMOVE_PATH="/foo" m3u8-query-proxy
curl http://localhost:8080/foo/bar.m3u8?token=baz
If you make a request as shown above, the proxy will request to https://cdn.example.com/bar.m3u8?token=baz.
It will rewrite the response as needed.
Refer to the test to see how to rewrite the response.