topfans/backend/services/galleryService/configs/dubbo.yaml
2026-04-07 22:29:48 +08:00

50 lines
1.1 KiB
YAML

# Dubbo 配置文件
dubbo:
# 应用配置
application:
name: gallery-service
version: 1.0.0
# 注册中心配置
registries:
nacos:
protocol: nacos
address: 127.0.0.1:8848
timeout: 5s
# 协议配置
protocols:
triple:
name: tri
port: 20004 # Gallery Service 端口
# Provider 配置
provider:
registry-ids: nacos
protocol-ids: triple
services:
# Gallery Service 服务定义
GalleryService:
interface: "github.com.topfans.backend.pkg.proto.gallery.GalleryService"
# Consumer 配置
consumer:
registry-ids: nacos
references:
# Asset Service 客户端
AssetService:
protocol: tri
interface: "github.com.topfans.backend.pkg.proto.asset.AssetService"
cluster: failover
loadbalance: random
# User Service 客户端
UserSocialService:
protocol: tri
interface: "github.com.topfans.backend.pkg.proto.user.UserSocialService"
cluster: failover
loadbalance: random
# 超时配置
timeout: 5s