|
|
@@ -3,78 +3,23 @@ spring:
|
|
|
nacos:
|
|
|
discovery:
|
|
|
# 服务注册地址
|
|
|
- server-addr: 10.10.10.230:8848
|
|
|
+# server-addr: 10.10.10.230:8848
|
|
|
+ server-addr: 127.0.0.1:8848
|
|
|
# 命名空间
|
|
|
namespace: sckw-service-platform-dev
|
|
|
# 共享配置
|
|
|
group: sckw-service-platform
|
|
|
config:
|
|
|
# 配置中心地址
|
|
|
- server-addr: 10.10.10.230:8848
|
|
|
+# server-addr: 10.10.10.230:8848
|
|
|
+ server-addr: 127.0.0.1:8848
|
|
|
# 配置文件格式
|
|
|
file-extension: yaml
|
|
|
# 命名空间
|
|
|
namespace: sckw-service-platform-dev
|
|
|
# 共享配置
|
|
|
group: sckw-service-platform
|
|
|
- function:
|
|
|
- definition: sckwSms;sckwMessage
|
|
|
- stream:
|
|
|
- binders:
|
|
|
- defaultRabbit:
|
|
|
- type: rabbit
|
|
|
- environment:
|
|
|
- spring:
|
|
|
- rabbitmq:
|
|
|
- virtual-host: /
|
|
|
- host: 39.104.134.114
|
|
|
- port: 5672
|
|
|
- username: wph
|
|
|
- password: Yy123...
|
|
|
- bindings:
|
|
|
- sckwSms-in-0:
|
|
|
- destination: sckw-sms
|
|
|
- content-type: application/json
|
|
|
- binder: defaultRabbit
|
|
|
- group: sckw
|
|
|
- sckwSms-out-0:
|
|
|
- destination: sckw-sms
|
|
|
- content-type: application/json
|
|
|
- default-binder: defaultRabbit
|
|
|
- group: sckw
|
|
|
- sckwMessage-in-0:
|
|
|
- destination: sckw-message
|
|
|
- content-type: application/json
|
|
|
- binder: defaultRabbit
|
|
|
- group: sckw
|
|
|
- sckwMessage-out-0:
|
|
|
- destination: sckw-message
|
|
|
- content-type: application/json
|
|
|
- binder: defaultRabbit
|
|
|
- group: sckw
|
|
|
- rabbitmq:
|
|
|
- username: sckw
|
|
|
- password: Yy123...
|
|
|
- host: 10.10.10.230
|
|
|
- port: 15672
|
|
|
- virtual-host: /
|
|
|
|
|
|
|
|
|
-# dubbo
|
|
|
-dubbo:
|
|
|
- application:
|
|
|
- # 此处没有延用spring.application.name是因为当前项目本身也会注册到nacos中,如果dubbo也延用相同的名称,在nacos服务里会看到注册的producer-server服务数为2
|
|
|
- name: message-dubbo-server
|
|
|
- protocol:
|
|
|
- name: dubbo
|
|
|
- port: -1
|
|
|
- registry:
|
|
|
- # 配置dubbo的注册中心为nacos
|
|
|
- address: nacos://${spring.cloud.nacos.discovery.server-addr}
|
|
|
- group: ${spring.cloud.nacos.config.group}
|
|
|
- protocol: nacos
|
|
|
- #use-as-config-center: false
|
|
|
- #use-as-metadata-center: false
|
|
|
-
|
|
|
|
|
|
|