Skip to content

darren/retv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

retv

一个简单的 m3u 代理

Apple TV 的某些 iptv 播放器(底层使用的 VLC)地址中有 IPv6 地址时无法播放,因此有了这个简单代理

caddy 配置

:80 {
  bind 192.168.1.200
  route {
    reverse_proxy /r/* 127.0.0.1:18090
    reverse_proxy /rtp/* 127.0.0.1:18090

    file_server /* {
      root  /var/www/html
    }
  }
}

systemd 服务文件

[Unit]
Description=Reverse Proxy for IPTV Service
After=network-online.target
Wants=network-online.target

[Service]
Type=notify
PIDFile=/run/retv.pid
ExecStart=/usr/bin/retv -l 127.0.0.1:18090
Restart=always
LimitNOFILE=4096
RestartSec=3

[Install]
WantedBy=multi-user.target

system状态更新

systemctl status retv

report status like:

Status: "RTP(stream: 1, client: 2), HLS(client: 1)"

参考资料

  1. https://en.wikipedia.org/wiki/RTP_payload_formats

About

A simple m3u rewrite proxy

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages