优化readme
This commit is contained in:
parent
1b80b5d5d7
commit
b03b659736
23
README.md
23
README.md
@ -11,3 +11,26 @@ python server.py
|
|||||||
```shell
|
```shell
|
||||||
sanic server:app --host=0.0.0.0 --port=80
|
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里面添加
|
||||||
|
Loading…
Reference in New Issue
Block a user