Walker 1 год назад
Родитель
Сommit
855e1c1c55

+ 11 - 0
src/main/resources/application-biz-qa.yml

@@ -2,6 +2,12 @@
 servers-mapping:
   web-static: 172.18.82.224:9998
   marketing-api: 172.18.226.68:11320
+  alipay-mp-api: 172.18.82.224:8097
+  external-api-service: 172.18.82.224:7777
+  dong-hua-rest-service: 172.18.82.224:7668
+  nfyybyfy-rest-service: 172.18.82.224:7670
+  wx-ins-pay-rest-service: 172.18.82.224:7669
+  his-esb-api-service: 172.18.82.224:13900
 
 lb-servers:
   internethospital-web: lb://internethospital-web
@@ -15,6 +21,11 @@ host-name:
   m-qa: m-qa.ywtinfo.com
   api-qa: api-qa.ywtinfo.com
   mg-qa: mg-qa.ywtinfo.com
+  openapi-qa: openapi-qa.ywtinfo.com
+  doc-qa: doc-qa.ywtinfo.com
+  nutrimeal-qa: nutrimeal-qa.ywtinfo.com
+  cloudfilm-qa: cloudfilm-qa.ywtinfo.com
+  glasses-qa: glasses-qa.ywtinfo.com
 
 auths-name:
   nfth-qt: 'nfth-qt'

+ 9 - 0
src/main/resources/application-routes-cloudfilm-qa.yml

@@ -0,0 +1,9 @@
+spring:
+  cloud:
+    gateway:
+      routes:
+        - id: cloudfilm-qa
+          uri: ${servers-mapping.web-static}
+          predicates:
+            - Host=${host-name.cloudfilm-qa}
+            - Path=/

+ 53 - 0
src/main/resources/application-routes-glasses-qa.yml

@@ -0,0 +1,53 @@
+spring:
+  cloud:
+    gateway:
+      routes:
+        - id: glasses-qa-api-auth-glasses-login
+          uri: ${lb-servers.ywt-mgcenter-web}
+          predicates:
+            - Host=${host-name.glasses-qa}
+            - Path=/api/auth/glasses/login
+          filters:
+            - StripPrefix=1
+            - name: Auth
+              args:
+                refreshAuth: ${auths-name.ywt-mg}
+
+        - id: glasses-qa-api-auth-change-psw
+          uri: ${lb-servers.ywt-mgcenter-web}
+          predicates:
+            - Host=${host-name.glasses-qa}
+            - Path=/api/auth/changepassword
+          filters:
+            - StripPrefix=1
+            - name: Auth
+              args:
+                auth: ${auths-name.external-api}
+
+        - id: glasses-qa
+          uri: ${lb-servers.glasses-web}
+          predicates:
+            - Host=${host-name.glasses-qa}
+            - Path=/
+          filters:
+            - name: Auth
+              args:
+                auth: ${auths-name.external-api}
+
+        - id: glasses-qa-mg
+          uri: ${lb-servers.glasses-web}
+          predicates:
+            - Host=${host-name.glasses-qa}
+            - Path=/mg/orders/downloadOrdersListGet,/mg/goods/downloadGoodsListGet,/mg/orders/downloadAmountListGet
+
+
+        - id: glasses-qa-api
+          uri: ${lb-servers.glasses-web}
+          predicates:
+            - Host=${host-name.glasses-qa}
+            - Path=/api
+          filters:
+            - StripPrefix=1
+            - name: Auth
+              args:
+                auth: ${auths-name.external-api}

+ 1 - 1
src/main/resources/application.yml

@@ -6,7 +6,7 @@ redis:
 
 spring:
   profiles:
-    include: routes-m-qa, biz-qa
+    include: routes-m-qa, biz-qa, routes-api-qa, routes-mg-qa
   application:
     name: gateway-service
   cloud: