Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否可以修改远程配置的模版,改用自己Fork后的模版 #63

Closed
2 tasks done
7sasuke7l opened this issue Mar 23, 2024 · 4 comments
Closed
2 tasks done

Comments

@7sasuke7l
Copy link

7sasuke7l commented Mar 23, 2024

描述

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
这是文档里给的替换链接,我想问的是
&file=https://github.com/Toperlock/sing-box-subscribe/raw/main/config_template/config_template_groups_rule_set_tun.json
这部分,是指向原版这个库的配置模版,是否可以把整个File链接指向自己的Github仓库。

完整性要求

  • 我保证阅读了reademe文档,了解所有sing-box-subscrib使用参数的含义与工作流程。
  • 我保证转换的订阅链接可以在浏览器打开,并且有内容。
@Toperlock
Copy link
Owner

可以的。

@7sasuke7l
Copy link
Author

还有一个问题,如果可以,是不是得复制2份sing-box subscribe项目,一份用来部署vercel,另一份单独修改json配置文件,然后用后者作为链接的file=之后的部分。
因为我试过,用同一份文件部署vercel和链接file=之后的引用,一直无法在客户端添加,但换成你的配置文件地址就可以正确添加。

@Toperlock
Copy link
Owner

不需要。部署vercel后,应该使用你自己的vercel网址,不需要&file=“远程模板链接” 就可以直接引用你自己仓库里的模板。但是可以引用 &file=2 来选你仓库里的第二个模板
我看了是因为你的json模板里有注释,导致程序读取json错误,还有缺少逗号的语法错误
image
image
image

请规范填写json格式

@7sasuke7l
Copy link
Author

感谢大佬,学到了学到了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants