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