瀏覽代碼

高可用配置中心

gaodm 7 年之前
父節點
當前提交
567381c771

+ 10 - 0
config-server/src/main/resources/shared/gateway-service-dev.yml

@@ -46,6 +46,16 @@ zuul:
       serviceId: knowledge-service
       sensitiveHeaders:
 
+#mq
+spring:
+  rabbitmq:
+    host: 192.168.2.236
+    port: 5672
+    username: lantone
+    password: lantone
+    publisher-confirms: true
+    virtual-host: /
+
 server:
   port: 5050
 

+ 9 - 0
config-server/src/main/resources/shared/gateway-service-local.yml

@@ -45,6 +45,15 @@ zuul:
       path: /knowledgeapi/**
       serviceId: knowledge-service
       sensitiveHeaders:
+#mq
+spring:
+  rabbitmq:
+    host: localhost
+    port: 5672
+    username: guest
+    password: guest
+    publisher-confirms: true
+    virtual-host: /
 
 server:
   port: 5050

+ 10 - 0
config-server/src/main/resources/shared/monitor-service-dev.yml

@@ -10,6 +10,16 @@ turbine:
   instanceUrlSuffix:
     default: actuator/hystrix.stream
 
+#mq
+spring:
+  rabbitmq:
+    host: 192.168.2.236
+    port: 5672
+    username: lantone
+    password: lantone
+    publisher-confirms: true
+    virtual-host: /
+
 management:
   security:
     enabled: false

+ 10 - 0
config-server/src/main/resources/shared/monitor-service-local.yml

@@ -10,6 +10,16 @@ turbine:
   instanceUrlSuffix:
     default: actuator/hystrix.stream
 
+#mq
+spring:
+  rabbitmq:
+    host: localhost
+    port: 5672
+    username: guest
+    password: guest
+    publisher-confirms: true
+    virtual-host: /
+
 management:
   security:
     enabled: false

+ 9 - 0
config-server/src/main/resources/shared/uaa-service-dev.yml

@@ -55,6 +55,15 @@ spring:
         login-username: root
         login-password: root
 
+  #mq
+  rabbitmq:
+    host: 192.168.2.236
+    port: 5672
+    username: lantone
+    password: lantone
+    publisher-confirms: true
+    virtual-host: /
+
 #mybatis
 mybatis-plus:
   mapper-locations: classpath:/mapper/*Mapper.xml

+ 8 - 0
config-server/src/main/resources/shared/uaa-service-local.yml

@@ -54,6 +54,14 @@ spring:
         reset-enable: false
         login-username: root
         login-password: root
+  #mq
+  rabbitmq:
+    host: localhost
+    port: 5672
+    username: guest
+    password: guest
+    publisher-confirms: true
+    virtual-host: /
 
 #mybatis
 mybatis-plus: