{"id":13456643,"url":"https://github.com/Toperlock/sing-box-subscribe","last_synced_at":"2025-03-24T11:30:55.346Z","repository":{"id":186064561,"uuid":"674565842","full_name":"Toperlock/sing-box-subscribe","owner":"Toperlock","description":null,"archived":false,"fork":true,"pushed_at":"2025-03-15T04:45:26.000Z","size":1030,"stargazers_count":2175,"open_issues_count":2,"forks_count":2371,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-03-15T05:25:21.516Z","etag":null,"topics":["clash","clash2singbox","http","hysteria","hysteria2","shadowsocks","shadowsocksr","sing-box","socks5","trojan","tuic","vless","vmess","wireguard"],"latest_commit_sha":null,"homepage":"https://sing-box-subscribe-doraemon.vercel.app","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"gg4924/sing-box-subscribe","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Toperlock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-04T08:52:57.000Z","updated_at":"2025-03-15T04:45:33.000Z","dependencies_parsed_at":"2023-10-15T02:06:54.563Z","dependency_job_id":null,"html_url":"https://github.com/Toperlock/sing-box-subscribe","commit_stats":null,"previous_names":["toperlock/sing-box-subscribe"],"tags_count":42,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Toperlock%2Fsing-box-subscribe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Toperlock%2Fsing-box-subscribe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Toperlock%2Fsing-box-subscribe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Toperlock%2Fsing-box-subscribe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Toperlock","download_url":"https://codeload.github.com/Toperlock/sing-box-subscribe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245260736,"owners_count":20586450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clash","clash2singbox","http","hysteria","hysteria2","shadowsocks","shadowsocksr","sing-box","socks5","trojan","tuic","vless","vmess","wireguard"],"created_at":"2024-07-31T08:01:25.386Z","updated_at":"2025-03-24T11:30:55.004Z","avatar_url":"https://github.com/Toperlock.png","language":"Python","readme":"# 操作说明去看[英文文档](https://github.com/Toperlock/sing-box-subscribe/blob/main/instructions/README.md)，中文文档操作说明不再提供\n\n# 免责声明：sing-box-subscribe.vercel.app域名目前已被其他人占用，与本项目无关。后果自负\n![image](https://github.com/Toperlock/sing-box-subscribe/assets/86833913/f9af80bc-f1b7-45dd-a2eb-e26910069f21)\n\n### 使用 `/config/URL` 添加参数符号已修改，从原来的 `/\u0026` 改为 `\u0026`。有问题请提issue，不要打扰 `sing-box`\n\n```\nhttps://xxxxxxx.vercel.app/config/https://xxxxxxsubscribe?token=123456\u0026file=https://github.com/Toperlock/sing-box-subscribe/raw/main/config_template/config_template_groups_rule_set_tun.json\n```\n\n```\nhttps://xxxxxxx.vercel.app/config/https://xxxxxxsubscribe?token=123456\u0026file=2\n```\n\n本地python执行脚本命令：\n\n```\npython main.py\n```\n\n或者你可以直接带template_index参数选定模板，0表示第一个模板(no flask不支持此参数)\n\n```\npython main.py --template_index=0\n```\n\n支持Docker\n\n```\ndocker build --tag 'sing-box' .\ndocker run -p 5000:5000 sing-box:latest\n```\n\n### 根据已有的qx，surge，loon，clash规则列表自定义规则集[https://github.com/Toperlock/sing-box-geosite](https://github.com/Toperlock/sing-box-geosite)\n\n### wechat规则集源文件写法：\n```json\n{\n  \"version\": 1,\n  \"rules\": [\n    {\n      \"domain\": [\n        \"dl.wechat.com\",\n        \"sgfindershort.wechat.com\",\n        \"sgilinkshort.wechat.com\",\n        \"sglong.wechat.com\",\n        \"sgminorshort.wechat.com\",\n        \"sgquic.wechat.com\",\n        \"sgshort.wechat.com\",\n        \"tencentmap.wechat.com.com\",\n        \"qlogo.cn\",\n        \"qpic.cn\",\n        \"servicewechat.com\",\n        \"tenpay.com\",\n        \"wechat.com\",\n        \"wechatlegal.net\",\n        \"wechatpay.com\",\n        \"weixin.com\",\n        \"weixin.qq.com\",\n        \"weixinbridge.com\",\n        \"weixinsxy.com\",\n        \"wxapp.tc.qq.com\"\n      ]\n    },\n    {\n      \"domain_suffix\": [\n        \".qlogo.cn\",\n        \".qpic.cn\",\n        \".servicewechat.com\",\n        \".tenpay.com\",\n        \".wechat.com\",\n        \".wechatlegal.net\",\n        \".wechatpay.com\",\n        \".weixin.com\",\n        \".weixin.qq.com\",\n        \".weixinbridge.com\",\n        \".weixinsxy.com\",\n        \".wxapp.tc.qq.com\"\n      ]\n    },\n    {\n      \"ip_cidr\": [\n        \"101.32.104.4/32\",\n        \"101.32.104.41/32\",\n        \"101.32.104.56/32\",\n        \"101.32.118.25/32\",\n        \"101.32.133.16/32\",\n        \"101.32.133.209/32\",\n        \"101.32.133.53/32\",\n        \"129.226.107.244/32\",\n        \"129.226.3.47/32\",\n        \"162.62.163.63/32\"\n      ]\n    }\n  ]\n}\n```\n配置文件添加源文件规则集：\n```\n{\n  \"tag\": \"geosite-wechat\",\n  \"type\": \"remote\",\n  \"format\": \"source\",\n  \"url\": \"https://raw.githubusercontent.com/Toperlock/sing-box-geosite/main/wechat.json\",\n  \"download_detour\": \"auto\"\n}\n```\n\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FToperlock%2Fsing-box-subscribe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FToperlock%2Fsing-box-subscribe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FToperlock%2Fsing-box-subscribe/lists"}