GitHub原作
https://github.com/tindy2013/subconverter/blob/master/README-docker.md
步骤
# 后台服务
mkdir -p /data/subconverter && cd /data/subconverter
docker run -d –restart=always –name subconverter -p 9500:25500 -e TZ=Asia/Shanghai tindy2013/subconverter:latest
docker logs -f subconverter
# then check its status
curl http://localhost:9500/version
http://127.0.0.1:9500/sub?target=clash&url=https%3A%2F%2Fjustmysocks3.net%2Fmembers%2Fgetsub.php%3Fservice%3D66801%26id%3Db2ed9923-3787-4f98-885f-1c4839509743%26noss%3D1
准备URLEncode后的源订阅链接
宝塔建立新域名+SSL+反代
测试
# 模板参考
http://127.0.0.1:9500/sub?target=%TARGET%&url=%URL%&config=%CONFIG%
# 本地测试
curl http://127.0.0.1:9500/sub?target=clash&url=https%3A%2F%2Fjustmysocks3.net%2Fmembers%2Fgetsub.php%3Fservice%3D66801%26id%3Db2ed992X-XXXX98-885f-1c4839509743%26noss%3D1
# 然后可以用已经设好反代的域名
curl https://clash.nonoidea.com/sub?target=clash&url=https%3A%2F%2Fjustmysocks3.net%2Fmembers%2Fgetsub.php%3Fservice%3D66801%26id%3Db2ed9923-3787-4f98-885f-1c4839509743%26noss%3D1&noss=1
# 也可以直接在浏览器当中访问
暂无评论内容