Git Product home page Git Product logo

Comments (6)

FaithAluten avatar FaithAluten commented on August 23, 2024

顺便想问一下,直链订阅的方式,https://<我的域名>/config/<我的订阅>&file=<配置文件> 中的 <配置文件> 必须是直链当中包含模版信息么,我在服务端已经写好了几个模版,请问可不可以直接调用呢

from sing-box-subscribe.

Toperlock avatar Toperlock commented on August 23, 2024

providers.json内容不会显示在网页上。网页只显示默认值,避免敏感数据被人看到。
编辑providers.json的行为,适合在本地运行 python mian.py

可以调用你写好的配置模板,配置模板要求:

https://github.com/Toperlock/sing-box-subscribe/blob/main/instructions/README.md#config-template-files

image

from sing-box-subscribe.

Toperlock avatar Toperlock commented on August 23, 2024

网页 Edit TEMP_JSON_DATA方框内容修改是一次性的,生成配置后会自动还原为默认值(避免敏感数据被人看到,如果你修改后没点击生成配置是不会还原的

from sing-box-subscribe.

FaithAluten avatar FaithAluten commented on August 23, 2024

providers.json内容不会显示在网页上。网页只显示默认值,避免敏感数据被人看到。 编辑providers.json的行为,适合在本地运行 python mian.py

可以调用你写好的配置模板,配置模板要求:

https://github.com/Toperlock/sing-box-subscribe/blob/main/instructions/README.md#config-template-files

image

您好,感谢您的回答。我可能表述的不太清楚,导致您误解了我的意思,您说的这些我都清楚,我真实是想知道以下内容:

  1. Edit TEMP_JSON_DATA 的默认值可不可以修改,如果可以的话,要如何修改
  2. &file 后的值可不可以不填直链,您截图的就是github托管的链接,而咱部署该项目的服务器上已经有模版文件了,我想知道有没有接口能让它直接调用它本地的,而不是我再通过nginx给这个配置文件弄个直链方便外部访问

from sing-box-subscribe.

Toperlock avatar Toperlock commented on August 23, 2024

修改展示的 Edit TEMP_JSON_DATA 内容文件:
├─api
│ app.py
└─templates
│ index.html

配置文件只要在 config_template 目录下就可以直接调用(用数字1代表第一个模板):
├─config_template
│ 你的模板.json
│ 模板2.json

from sing-box-subscribe.

FaithAluten avatar FaithAluten commented on August 23, 2024

感谢,已解决

from sing-box-subscribe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.