first commit
This commit is contained in:
33
config/development.toml
Normal file
33
config/development.toml
Normal file
@@ -0,0 +1,33 @@
|
||||
# 开发环境配置 - SQLite 数据库
|
||||
[server]
|
||||
host = "0.0.0.0"
|
||||
port = 3000
|
||||
|
||||
[database]
|
||||
# 数据库类型: mysql, sqlite, postgresql
|
||||
database_type = "sqlite"
|
||||
|
||||
# MySQL/PostgreSQL 配置
|
||||
# host = "localhost"
|
||||
# port = 3306
|
||||
# user = "root"
|
||||
# password = "root"
|
||||
# database = "web_template"
|
||||
|
||||
# SQLite 配置(当 database_type = "sqlite" 时使用)
|
||||
path = "data/app.db"
|
||||
|
||||
# 连接池配置
|
||||
max_connections = 10
|
||||
|
||||
[auth]
|
||||
jwt_secret = "9f7d3c7a564dfkopp26smb2644nqzfvbsao9f7d3c7a1a8f28544b5e6d7a"
|
||||
# 分开配置两个 token 的过期时间
|
||||
access_token_expiration_minutes = 15 # access_token 15 分钟
|
||||
refresh_token_expiration_days = 7 # refresh_token 7 天
|
||||
|
||||
[redis]
|
||||
host = "localhost"
|
||||
port = 6379
|
||||
password = "" # 可选
|
||||
db = 0
|
||||
Reference in New Issue
Block a user