mingyang-admin-iot-app/rpc/etc/app.yaml

46 lines
772 B
YAML

Name: rpc.rpc
ListenOn: 0.0.0.0:9901
DatabaseConf:
Type: postgres
Host: 192.168.201.188
Port: 5432
DBName: Lei_app_dev
Username: postgres
Password: AM38xymTdFree4Fh
MaxOpenConn: 100
SSLMode: disable
CacheTime: 5
# 添加以下配置启用 SQL 日志
Debug: true
LogSlowThreshold: 600ms
RedisConf:
Host: 192.168.201.58:6379
Db: 0
JWTConf:
access_token_secret: OAMDAascvzcvasdf
refresh_token_secret: ASDZCpajbvasdfasf
access_token_expiry: 24h
refresh_token_expiry: 720h
issuer: user-system
Log:
ServiceName: appRpcLogger
Mode: console
Path: /home/data/logs/app/rpc
Encoding: json
Level: info
Compress: false
KeepDays: 7
StackCoolDownMillis: 100
McmsRpc:
Target: 127.0.0.1:9106
Enabled: true
Timeout: 10000