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

43 lines
780 B
YAML

Name: rpc.rpc
ListenOn: 0.0.0.0:8080
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
jwt:
access_token_secret: your-super-secret-access-token-key-change-in-production
refresh_token_secret: your-super-secret-refresh-token-key-change-in-production
access_token_expiry: 24h
refresh_token_expiry: 720h
issuer: user-system
RedisConf:
Host: 192.168.201.58:6379
Db: 1
Log:
ServiceName: appRpcLogger
Mode: console
Path: /home/data/logs/app/rpc
Encoding: json
Level: info
Compress: false
KeepDays: 7
StackCoolDownMillis: 100