tianyuan-api-server/apps/user/etc/user.yaml

19 lines
538 B
YAML
Raw Normal View History

2024-10-02 00:57:17 +08:00
Name: user.rpc
ListenOn: 0.0.0.0:11001
Etcd:
Hosts:
2024-10-02 11:27:51 +08:00
- tyapi_etcd:2379
2024-10-02 00:57:17 +08:00
Key: user.rpc
2024-10-02 11:27:51 +08:00
DataSource: "tianyuanapi:g3h98u0291j@tcp(tyapi_mysql:3306)/tianyuanapi?charset=utf8mb4&parseTime=True&loc=Local"
2024-10-02 00:57:17 +08:00
AuthJWT:
AccessSecret: "Mf5Xph3PoyKzVpRw0Zy1+X4uR/tM7JvGMEV/5p2M/tU="
AccessExpire: 86400 # JWT过期时间
CacheRedis:
2024-10-02 11:27:51 +08:00
- Host: "tyapi_redis:6379"
2024-10-02 00:57:17 +08:00
Pass: "" # Redis 密码,如果未设置则留空
Type: "node" # 单节点模式
SentinelRpc:
Etcd:
Hosts:
2024-10-02 11:27:51 +08:00
- tyapi_etcd:2379
2024-10-02 00:57:17 +08:00
Key: sentinel.rpc