doc: add readme and config toml example for new backend
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user