@mish-tv/m3u8-query-proxy
v0.0.5
Published
m3u8-query-proxy is a proxy server that adds a query to the value of a URI.
Downloads
8
Readme
Usage
npm install -g @mish-tv/[email protected]
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.