mirror of
https://github.com/m5stack/StackChan.git
synced 2026-05-20 11:49:45 -07:00
feat(server): deliver major backend expansion with v2 APIs, AI integration, and realtime infrastructure (#36)
This commit is contained in:
@@ -1,15 +1,41 @@
|
||||
# https://goframe.org/docs/web/server-config-file-template
|
||||
server:
|
||||
address: ":12800"
|
||||
# openapiPath: "/api.json"
|
||||
address: ":12800"
|
||||
openapiPath: "/api.json"
|
||||
swaggerPath: "/swagger"
|
||||
|
||||
# https://goframe.org/docs/core/glog-config
|
||||
logger:
|
||||
level : "all"
|
||||
stdout: true
|
||||
path: "./logs" # 日志目录(相对或绝对路径)
|
||||
file: "{Y-m-d}.log" # 按天滚动
|
||||
level: "all" # 日志级别:all | debug | info | warning | error
|
||||
stdout: true # 是否同时输出到控制台
|
||||
rotateExpire: "7d" # 日志保留时间
|
||||
rotateBackup: 10 # 最多保留文件数
|
||||
rotateSize: "50M" # 单文件最大大小
|
||||
|
||||
# https://goframe.org/docs/core/gdb-config-file
|
||||
database:
|
||||
default:
|
||||
link: "sqlite::@file(/stackChan.sqlite)"
|
||||
link: ""
|
||||
|
||||
|
||||
jwt:
|
||||
secret: ""
|
||||
|
||||
admin:
|
||||
users:
|
||||
- username: ""
|
||||
password: ""
|
||||
|
||||
rsa:
|
||||
server:
|
||||
public:
|
||||
private:
|
||||
client:
|
||||
public:
|
||||
private:
|
||||
|
||||
xiaozhi:
|
||||
secret_key:
|
||||
generate_license_token:
|
||||
Reference in New Issue
Block a user