doc: add readme and config toml example for new backend

This commit is contained in:
2026-07-17 16:44:57 +08:00
parent cabe17884a
commit bb70f3432d
2 changed files with 93 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
[database]
driver = "sqlite"
[database.config]
path = "coconut-leaf.db"
# MySQL(占位,尚未实现)
# [database]
# driver = "mysql"
#
# [database.config]
# host = "localhost"
# port = 3306
# user = "root"
# password = "password"
# database = "coconut_leaf"
[web]
port = 8848
[others]
auto-token-clean-duration = 86400 # 自动清理过期 token 的间隔(秒)
debug = true # 开启后日志级别降到 DEBUG