init
This commit is contained in:
40
serve/config/config.dev.yaml
Normal file
40
serve/config/config.dev.yaml
Normal file
@@ -0,0 +1,40 @@
|
||||
# AI英语学习平台 - 开发环境配置
|
||||
|
||||
server:
|
||||
port: "8080"
|
||||
mode: "debug" # debug, release, test
|
||||
|
||||
database:
|
||||
host: "localhost"
|
||||
port: "3306"
|
||||
user: "root"
|
||||
password: "JKjk20011115" # 建议通过环境变量 DB_PASSWORD 设置
|
||||
dbname: "ai_english_learning"
|
||||
charset: "utf8mb4"
|
||||
|
||||
jwt:
|
||||
secret: "dev-secret-key-change-in-production" # 建议通过环境变量 JWT_SECRET 设置
|
||||
access_token_ttl: 3600 # 1小时
|
||||
refresh_token_ttl: 604800 # 7天
|
||||
|
||||
redis:
|
||||
host: "localhost"
|
||||
port: "6379"
|
||||
password: "" # 建议通过环境变量 REDIS_PASSWORD 设置
|
||||
db: 0
|
||||
|
||||
app:
|
||||
name: "AI English Learning"
|
||||
version: "1.0.0"
|
||||
environment: "development"
|
||||
log_level: "debug"
|
||||
|
||||
log:
|
||||
level: "debug" # debug, info, warn, error, fatal, panic
|
||||
format: "text" # json, text
|
||||
output: "both" # console, file, both
|
||||
file_path: "./logs/dev.log"
|
||||
max_size: 100 # MB
|
||||
max_backups: 5
|
||||
max_age: 7 # days
|
||||
compress: false
|
||||
Reference in New Issue
Block a user