|
@@ -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
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|