1.0
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
# 应用配置
|
||||
app:
|
||||
name: "AwesomeProject"
|
||||
version: "1.0.0"
|
||||
port: 8090
|
||||
env: "development" # development, production, test
|
||||
|
||||
# 数据库配置
|
||||
database:
|
||||
driver: "mysql" # mysql, postgres, sqlite
|
||||
host: "localhost"
|
||||
port: 3306
|
||||
username: "root"
|
||||
password: "123456"
|
||||
dbname: "a_business_help"
|
||||
charset: "utf8mb4"
|
||||
# SQLite 配置 (当 driver 为 sqlite 时使用)
|
||||
sqlite_path: "./data/awesome.db"
|
||||
# 连接池配置
|
||||
max_idle_conns: 10
|
||||
max_open_conns: 100
|
||||
conn_max_lifetime: 3600 # 秒
|
||||
|
||||
# JWT 配置
|
||||
jwt:
|
||||
secret_key: "your-very-secret-key-32-bytes-long-string"
|
||||
expire_hours: 24
|
||||
|
||||
# 服务器配置
|
||||
server:
|
||||
read_timeout: 60 # 秒
|
||||
write_timeout: 60 # 秒
|
||||
static_path: "./public"
|
||||
upload_max_size: 100 # MB
|
||||
|
||||
# 日志配置
|
||||
log:
|
||||
level: "info" # debug, info, warn, error
|
||||
file_path: "./logs/app.log"
|
||||
max_size: 100 # MB
|
||||
max_age: 30 # 天
|
||||
max_backups: 10 # 文件数量
|
||||
Reference in New Issue
Block a user