操作说明去看英文文档,中文文档操作说明不再提供
https://xxxxxxx.vercel.app/config/https://xxxxxxsubscribe?token=123456&file=https://github.com/Toperlock/sing-box-subscribe/raw/main/config_template/config_template_groups_rule_set_tun.json https://xxxxxxx.vercel.app/config/https://xxxxxxsubscribe?token=123456&file=2 本地python执行脚本命令:
python main.py 或者你可以直接带template_index参数选定模板,0表示第一个模板(no flask不支持此参数)
python main.py --template_index=0 支持Docker
docker build --tag 'sing-box' . docker run -p 5000:5000 sing-box:latest 支持自定义GitHub加速链接(使用参数&gh=1 数字代表使用第一个github加速),默认不加此参数。只有原始GitHub文件链接或者已经使用以下GitHub加速链接才能替换
1. "https://gh-proxy.com/", 2. "https://gh.sageer.me/", 3. "https://ghproxy.com/", 4. "https://mirror.ghproxy.com/", 5. "https://cdn.jsdelivr.net", 6. "https://testingcf.jsdelivr.net" 根据已有的qx,surge,loon,clash规则列表自定义规则集https://github.com/Toperlock/sing-box-geosite
{ "version": 1, "rules": [ { "domain": [ "dl.wechat.com", "sgfindershort.wechat.com", "sgilinkshort.wechat.com", "sglong.wechat.com", "sgminorshort.wechat.com", "sgquic.wechat.com", "sgshort.wechat.com", "tencentmap.wechat.com.com", "qlogo.cn", "qpic.cn", "servicewechat.com", "tenpay.com", "wechat.com", "wechatlegal.net", "wechatpay.com", "weixin.com", "weixin.qq.com", "weixinbridge.com", "weixinsxy.com", "wxapp.tc.qq.com" ] }, { "domain_suffix": [ ".qlogo.cn", ".qpic.cn", ".servicewechat.com", ".tenpay.com", ".wechat.com", ".wechatlegal.net", ".wechatpay.com", ".weixin.com", ".weixin.qq.com", ".weixinbridge.com", ".weixinsxy.com", ".wxapp.tc.qq.com" ] }, { "ip_cidr": [ "101.32.104.4/32", "101.32.104.41/32", "101.32.104.56/32", "101.32.118.25/32", "101.32.133.16/32", "101.32.133.209/32", "101.32.133.53/32", "129.226.107.244/32", "129.226.3.47/32", "162.62.163.63/32" ] } ] }配置文件添加源文件规则集:
{ "tag": "geosite-wechat", "type": "remote", "format": "source", "url": "https://raw.githubusercontent.com/Toperlock/sing-box-geosite/main/wechat.json", "download_detour": "auto" } 