Reverse proxy on iptv m3u and m3u8 file and xtream codes client api
Reverse proxy on iptv m3u and m3u8 file and xtream codes client api
Iptv-Proxy is a project to proxyfie an m3u file and to proxyfie an Xtream iptv service (client API).
M3U service convert an iptv m3u file into a web proxy server.
It's transform all the original tracks to an new url pointing on the proxy.
proxy on Xtream code (client API)
support live, vod, series and full epg :rocket:
Original iptv m3u file
…What M3U proxy IPTV do
Start proxy server example
iptv-proxy --m3u-url http://example.com/get.php?username=user&password=pass&type=m3u_plus&output=m3u8 \
--port 8080 \
--hostname proxyexample.com \
--user test \
--password passwordtest That's give you an m3u file on a specific endpoint iptv.m3u in our example
http://proxyserver.com:8080/iptv.m3u?username=test&password=passwordtest
All the new routes pointing on your proxy server
…The m3u8 feature is like m3u. The playlist should be in the m3u format and should contain all m3u8 tracks.
Sample of the original m3u file containing m3u8 track:
#EXTM3U
#EXTINF:-1 tvg-ID="examplechanel1.com" tvg-name="chanel1" tvg-logo="http://ch.xyz/logo1.png" group-title="USA HD",CHANEL1-HD
http://iptvexample.net:1234/12/test/1.m3u8
#EXTINF:-1 tvg-ID="examplechanel2.com" tvg-name="chanel2" tvg-logo="http://ch.xyz/logo2.png" group-title="USA HD",CHANEL2-HD
http://iptvexample.net:1234/13/test/2.m3u8% iptv-proxy --m3u-url http://example.com:1234/get.php?username=user&password=pass&type=m3u_plus&output=m3u8 \
--port 8080 \
--hostname proxyexample.com \
## put xtream flags if you want to add xtream proxy
--xtream-user xtream_user \
--xtream-password xtream_password \
--xtream-base-url http://example.com:1234 \
--user test \
--password passwordtest
What Xtream proxy do
xtream-user and xtream-password into new user and passwordxtream-base-url with hostname and portOriginal xtream credentials
user: xtream_user
password: xtream_password
base-url: http://example.com:1234New xtream credentials
user: test
password: passwordtest
base-url: http://proxyexample.com:8080All xtream live, streams, vod, series... are proxyfied!
You can get the m3u file with the original Xtream api request:
http://proxyexample.com:8080/get.php?username=test&password=passwordtest&type=m3u_plus&output=tsDownload lasted release
Or
% go install in root repository
docker-compose.yml or add local file in iptv folderHOSTNAME and PORT to exposePORT ENV variable…% docker-compose up -dPut files and folders of ./traekik folder in root repo:
$ cp -r ./traekik/* .$ mkdir config \
&& mkdir -p Traefik/etc/traefik \
&& mkdir -p Traefik/logdocker-compose sample with traefik:
…Replace iptv.proxyexample.xyz in docker-compose.yml with your desired domain.
$ docker-compose up -dthere is basic auth just for testing. change with a real auth with database and user management and auth with token...
ENJOY!
Grab me a beer
No open issues yet, or sync has not completed.