Browse Source

Merge branch 'master' of http://gogs.ywtinfo.com/ywt_rebuild_group/ywt-gateway

Walker 1 year ago
parent
commit
f7cae488d3

+ 4 - 1
src/main/resources/application-biz-qa.yml

@@ -7,7 +7,10 @@ lb-servers:
   internethospital-web: lb://internethospital-web
   outpatient-web: lb://outpatient-web
   ywt-platform-rest: lb://ywt-platform-rest
-
+  ywt-mgcenter-web: lb://com.ywt.MgCenterApiService
+  prescription-web: lb://prescription-web
+  nutrimeal-rest: lb:ywt-nutrimeal-rest
+  glasses-web: lb://glasses-front-service
 host-name:
   m-qa: m-qa.ywtinfo.com
   api-qa: api-qa.ywtinfo.com

+ 110 - 0
src/main/resources/application-routes-mg-qa.yml

@@ -0,0 +1,110 @@
+
+spring:
+  cloud:
+    gateway:
+      routes:
+        - id: INTERNET-HOSP-WEB-TEST
+          uri: ${lb-servers.internethospital-web}
+          predicates:
+            - Path=/taihe/user/checkCardNo
+          filters:
+            - name: Auth
+              args:
+                auth: ${auths-name.external-api}
+                authResponse401: true
+                #设置需要刷新的授权,当 auth 不为空,以 auth 的配置为主
+                refreshAuth: ''
+                setHeaders: [ ]
+        # 管理后台 start
+        # 登录页面
+        - id: mg-qa-m-sysconfig-user-login
+          uri: ${servers-mapping.web-static}
+          predicates:
+            - Host=${host-name.mg-qa}
+            - Path=/m-sysconfig/user/login
+        # 登录接口
+        - id: mg-qa-api-auth-login
+          uri: ${lb-servers.ywt-mgcenter-web}
+          predicates:
+            - Host=${host-name.mg-qa}
+            - Path=/api/auth/login
+          filters:
+            - StripPrefix=1
+            - name: Auth
+              args:
+                refreshAuth: ${auths-name.ywt-mg}
+        # 药品后台接口
+        - id: mg-qa-drugapi
+          uri: ${lb-servers.prescription-web}
+          predicates:
+            - Host=${host-name.mg-qa}
+            - Path=/drugapi
+          filters:
+            - StripPrefix=1
+            - name: Auth
+              args:
+                authResponse401: true
+                auth: ${auths-name.ywt-mg}
+        # center后台接口
+        - id: mg-qa-api
+          uri: ${servers-mapping.ywt-mgcenter-web}
+          predicates:
+            - Host=${host-name.mg-qa}
+            - Path=/api
+          filters:
+            - name: Auth
+              args:
+                authResponse401: true
+                auth: ${auths-name.ywt-mg}
+                timeout: 90
+        # 根目录
+        - id: mg-qa
+          uri: ${servers-mapping.web-static}
+          predicates:
+            - Host=${host-name.mg-qa}
+            - Path=/
+          filters:
+            - name: Auth
+              args:
+                authResponse401: true
+                auth: ${auths-name.ywt-mg}
+        # 营养餐接口
+        - id: mg-qa-nutrimeal
+          uri: ${lb-servers.nutrimeal-rest}
+          predicates:
+            - Host=${host-name.mg-qa}
+            - Path=/nutrimeal
+          filters:
+            - StripPrefix=1
+            - name: Auth
+              args:
+                authResponse401: true
+                timeout: 90
+                auth: ${auths-name.ywt-mg}
+        # 眼镜店接口
+        - id: mg-qa-glasses-mg-shop-getShopList
+          uri: ${lb-servers.glasses-web}
+          predicates:
+            - Host=${host-name.mg-qa}
+            - Path=/glasses/mg/shop/getShopList
+          filters:
+            - StripPrefix=1
+            - name: Auth
+              args:
+                refreshAuth: ${auths-name.ywt-mg}
+        - id: mg-qa-glasses
+          uri: ${lb-servers.glasses-web}
+          predicates:
+            - Host=${host-name.mg-qa}
+            - Path=/glasses
+          filters:
+            - StripPrefix=1
+            - name: Auth
+              args:
+                authResponse401: true
+                auth: ${auths-name.ywt-mg}
+        # 管理后台 end
+
+
+
+