feat(config): 添加测试环境配置文件

- 配置API服务基础参数(主机、端口、超时等)
- 设置跨域资源共享(CORS)配置
- 配置日志服务参数(控制台输出、路径、级别等)
- 设置Redis连接参数(主机地址、数据库、密码)
- 配置JWT访问密钥用于身份验证
- 设置国际化(I18n)目录配置
- 配置应用RPC服务连接参数(ETCD地址、超时时间等)
- 设置ETCD注册中心连接信息
This commit is contained in:
Kun-GitHub 2025-12-24 15:44:17 +08:00
parent 733fe2beec
commit e9a4eb0629
1 changed files with 49 additions and 0 deletions

49
api/etc/test.yaml Normal file
View File

@ -0,0 +1,49 @@
Name: cms.api
Host: 0.0.0.0
Port: 9902
Timeout: 6000
Middlewares:
Tenant: true
CROSConf:
Address: '*'
Log:
ServiceName: AppApiLogger
Mode: console
Path: /home/data/logs
Level: info
Compress: false
Encoding: json
KeepDays: 7
StackCoolDownMillis: 100
RedisConf:
Host: 192.168.201.228:31314
Db: 4
Pass: 'redis.123456'
JWTConf:
AccessSecret: KdAj3ZnmHpVvGKBthWXmTNPRcdZaWP7cnbsvmJSYRadN8PebaaAQENVKDD6WCm
I18nConf:
Dir:
AppRpc:
#Target: 127.0.0.1:9101
Etcd:
Hosts:
- mingyang-etcd-test-service.mingyang-admin.svc.cluster.local:2379 # 共享etcd地址
Key: cms.rpc
Enabled: true
Timeout: 6000
Keepalive:
Time: 10s
Timeout: 20s
PermitWithoutStream: true
Etcd:
Hosts:
- mingyang-etcd-test-service.mingyang-admin.svc.cluster.local:2379
Key: cms.api