feat: en redis and logs

This commit is contained in:
zzw
2026-08-06 09:49:54 +08:00
parent 38be479cef
commit 23f5087a57
14 changed files with 358 additions and 469 deletions
+32 -5
View File
@@ -2,6 +2,18 @@ Name: product-service
ListenOn: 0.0.0.0:10100
Mode: dev
Log:
ServiceName: product-service
Mode: file # console | file | volume
Encoding: plain
Level: info
Path: logs
KeepDays: 7
Compress: false
# Rotation: daily
# MaxSize: 100
# MaxBackups: 10
Nacos:
Hosts:
- rnacos:8848
@@ -17,8 +29,23 @@ Mysql:
Database: dms-product
Charset: utf8mb4
Prefix:
# ReadHost: mysql-slave # 必填才会启用读写分离
# ReadPort: 3306 # 可省略,默认用主库 Port
# ReadUser: root # 可省略,默认用主库 User
# ReadPassword: "123123" # 可省略,默认用主库 Password
# ReadDatabase: dms-product # 可省略,默认用主库 Database
# ReadHost: mysql-slave
# ReadPort: 3306
# ReadUser: root
# ReadPassword: "123123"
# ReadDatabase: dms-product
BizRedis:
Host: redis
Port: 6379
Password: ""
DB: 0
AppLog:
Path: logs
InfoFile: info.log
ErrorFile: error.log
FatalFile: fatal.log
MaxSize: 100
MaxBackups: 10
MaxAge: 30