From b03b6597360c32162f2b41f5bf63917f65bb1f3a Mon Sep 17 00:00:00 2001 From: adk23333 <2633103794@qq.com> Date: Wed, 20 Dec 2023 21:06:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index ecb9d9d..88fd9df 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,26 @@ python server.py ```shell sanic server:app --host=0.0.0.0 --port=80 ``` + +关于各配置文件的介绍: + +```toml +# config.toml +private_key = "*******" # ica QQ的私钥 +host = "https://example.com:8080" # 服务端的地址 +self_id = 123456 # QQ Bot 的id +admin = [1234567, 654321] # 具有管理员权限的QQ号 +validate_host = "http://example.com:3000" # gitea服务端的网址 + +# 接下来的配置需要先去gitea管理界面,添加应用。 +# 在其中的回调地址输入https://{本机地址}/redirect +localhost = 'https://example.com' # 本机地址 +client_id = '*****-***-*****-*****-****' # gitea分配的客户端id +client_secret = '********' # gitea分配的安全识别码 +db_url = 'sqlite://db.sqlite3' # 数据库地址,乌龟ORM支持啥这里就支持啥 +``` + +casbin.conf:casbin的策略配置文件,具体到casbin官网学习: +https://casbin.org/zh/ + +添加指令请在cmds里面添加