feat(架构): 完善基础架构设计
This commit is contained in:
20
configs/env.development.yaml
Normal file
20
configs/env.development.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
# 🔧 开发环境配置
|
||||
# 只包含与默认配置不同的配置项
|
||||
|
||||
# ===========================================
|
||||
# 🌍 环境标识
|
||||
# ===========================================
|
||||
app:
|
||||
env: development
|
||||
|
||||
# ===========================================
|
||||
# 🗄️ 数据库配置
|
||||
# ===========================================
|
||||
database:
|
||||
password: Pg9mX4kL8nW2rT5y
|
||||
|
||||
# ===========================================
|
||||
# 🔐 JWT配置
|
||||
# ===========================================
|
||||
jwt:
|
||||
secret: JwT8xR4mN9vP2sL7kH3oB6yC1zA5uF0qE9tW
|
||||
32
configs/env.production.yaml
Normal file
32
configs/env.production.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
# 🏭 生产环境配置
|
||||
# 只包含与默认配置不同的配置项
|
||||
|
||||
# ===========================================
|
||||
# 🌍 环境标识
|
||||
# ===========================================
|
||||
app:
|
||||
env: production
|
||||
|
||||
# ===========================================
|
||||
# 🌐 服务器配置
|
||||
# ===========================================
|
||||
server:
|
||||
mode: release
|
||||
|
||||
# ===========================================
|
||||
# 🗄️ 数据库配置
|
||||
# ===========================================
|
||||
# 敏感信息通过外部环境变量注入
|
||||
database:
|
||||
sslmode: require
|
||||
|
||||
# ===========================================
|
||||
# 📝 日志配置
|
||||
# ===========================================
|
||||
logger:
|
||||
level: warn
|
||||
format: json
|
||||
# ===========================================
|
||||
# 🔐 JWT配置
|
||||
# ===========================================
|
||||
# JWT_SECRET 必须通过外部环境变量注入
|
||||
39
configs/env.testing.yaml
Normal file
39
configs/env.testing.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
# 🧪 测试环境配置
|
||||
# 只包含与默认配置不同的配置项
|
||||
|
||||
# ===========================================
|
||||
# 🌍 环境标识
|
||||
# ===========================================
|
||||
app:
|
||||
env: testing
|
||||
|
||||
# ===========================================
|
||||
# 🌐 服务器配置
|
||||
# ===========================================
|
||||
server:
|
||||
mode: test
|
||||
|
||||
# ===========================================
|
||||
# 🗄️ 数据库配置
|
||||
# ===========================================
|
||||
database:
|
||||
password: test_password
|
||||
name: tyapi_test
|
||||
|
||||
# ===========================================
|
||||
# 📦 Redis配置
|
||||
# ===========================================
|
||||
redis:
|
||||
db: 15
|
||||
|
||||
# ===========================================
|
||||
# 📝 日志配置
|
||||
# ===========================================
|
||||
logger:
|
||||
level: debug
|
||||
|
||||
# ===========================================
|
||||
# 🔐 JWT配置
|
||||
# ===========================================
|
||||
jwt:
|
||||
secret: test-jwt-secret-key-for-testing-only
|
||||
Reference in New Issue
Block a user