You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1012 B
32 lines
1012 B
spring: |
|
application: |
|
name: im-router |
|
redis: |
|
host: 124.222.131.236 |
|
port: 3379 |
|
password: sopod@redis# |
|
lettuce: |
|
pool: |
|
max-active: 100 |
|
max-idle: 100 |
|
max-wait: 1000 |
|
min-idle: 2 |
|
|
|
dubbo: |
|
application: |
|
name: ${spring.application.name} |
|
registry: |
|
address: nacos://124.222.131.236:3848 |
|
group: so-im |
|
protocol: |
|
name: dubbo |
|
port: 3031 |
|
consumer: |
|
check: false |
|
# filter: invoke_im_entry_filter # 调用im-entry时设置调用地址,配合im_entry_loadbalance路由到用户对应连接的im-entry |
|
provider: |
|
listener: im_router_api_export_listener # 监听im-router需要暴露的服务,启动时不注册,数据迁移后再注册为可用服务 |
|
loadbalance: im_route_consistent_hash # 调用im-router时根据上下文uid路由到用户对应的im-router |
|
retries: 0 # 这里服务重试时会路由到非uid所在对应im-router |
|
timeout: 2000 |
|
register: false # 不自动注册,数据初始化后注册
|
|
|