|
@@ -0,0 +1,143 @@
|
|
|
+
|
|
|
+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: ${lb-servers.ywt-mgcenter-web}
|
|
|
+ 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-nfthwe-auth
|
|
|
+ uri: ${servers-mapping.web-static}
|
|
|
+ predicates:
|
|
|
+ - Host=${host-name.mg-qa}
|
|
|
+ - Path=/nfthwe
|
|
|
+ filters:
|
|
|
+ - name: Auth
|
|
|
+ args:
|
|
|
+ auth: ${auths-name.ywt-wechat-nfth-mp}
|
|
|
+ - id: mg-qa-nfthwe-notify
|
|
|
+ uri: ${lb-servers.ywt-platform-rest}
|
|
|
+ predicates:
|
|
|
+ - Host=${host-name.mg-qa}
|
|
|
+ - Path=/nfthwe/notify
|
|
|
+ # 太和公众号 end
|
|
|
+
|
|
|
+ # 南方医务通公众号 start
|
|
|
+ # 门诊业务
|
|
|
+ - id: mg-qa-api-auth-outpatient
|
|
|
+ uri: ${lb-servers.ywt-mgcenter-web}
|
|
|
+ predicates:
|
|
|
+ - Host=${host-name.mg-qa}
|
|
|
+ - Path=/api/baiyun/register,/api/taihe/checkUp,/api/taihe/dh/inspection,/api/taihe/dhop,/api/taihe/main/register,/api/taihe/medicalRecord,/api/taihe/nfyy/add/register,/api/taihe/nfyy/register,/api/taihe/outpatient,/api/taihe/register,/api/taihe/mri,/api/nat,/api/outpatient,/api/taihe/register,/api/yiDa
|
|
|
+ filters:
|
|
|
+ - StripPrefix=1
|
|
|
+ - name: Auth
|
|
|
+ args:
|
|
|
+ authResponse401: true
|
|
|
+ auth: ${auths-name.ywt-wechat-nfywt-mp}
|
|
|
+ setHeaders: [ 'pl-terminal', '2' ]
|
|
|
+ - id: mg-qa-api-no-auth-outpatient
|
|
|
+ uri: ${lb-servers.ywt-mgcenter-web}
|
|
|
+ predicates:
|
|
|
+ - Host=${host-name.mg-qa}
|
|
|
+ - Path=/api/auth/wechat
|
|
|
+ filters:
|
|
|
+ - StripPrefix=1
|
|
|
+ - name: Auth
|
|
|
+ args:
|
|
|
+ refreshAuth: ${auths-name.ywt-wechat-nfywt-mp}
|
|
|
+ setHeaders: [ 'pl-terminal', '2' ]
|
|
|
+ # 其他转发到互联网业务
|
|
|
+ - id: mg-qa-api-auth-internethosp
|
|
|
+ uri: ${lb-servers.internethospital-web}
|
|
|
+ predicates:
|
|
|
+ - Host=${host-name.mg-qa}
|
|
|
+ - Path=/api
|
|
|
+ filters:
|
|
|
+ - StripPrefix=1
|
|
|
+ - name: Auth
|
|
|
+ args:
|
|
|
+ authResponse401: true
|
|
|
+ auth: ${auths-name.ywt-wechat-nfywt-mp}
|
|
|
+ # 静态页面
|
|
|
+ - id: mg-qa-nfywtwe-auth
|
|
|
+ uri: ${servers-mapping.web-static}
|
|
|
+ predicates:
|
|
|
+ - Host=${host-name.mg-qa}
|
|
|
+ - Path=/nfywtwe
|
|
|
+ filters:
|
|
|
+ - name: Auth
|
|
|
+ args:
|
|
|
+ auth: ${auths-name.ywt-wechat-nfywt-mp}
|
|
|
+ - id: mg-qa-nfywtwe-pay
|
|
|
+ uri: ${servers-mapping.web-static}
|
|
|
+ predicates:
|
|
|
+ - Host=${host-name.mg-qa}
|
|
|
+ - Path=/nfywtwe/pay
|
|
|
+ filters:
|
|
|
+ - name: Auth
|
|
|
+ args:
|
|
|
+ auth: ${auths-name.ywt-wechat-nfywt-mp-base-for-nfywtwe}
|
|
|
+ - id: mg-qa-nfywtwe-auth-wechat-base
|
|
|
+ uri: ${lb-servers.ywt-mgcenter-web}
|
|
|
+ predicates:
|
|
|
+ - Host=${host-name.mg-qa}
|
|
|
+ - Path=/api/auth/wechat/base
|
|
|
+ filters:
|
|
|
+ - StripPrefix=1
|
|
|
+ - name: Auth
|
|
|
+ args:
|
|
|
+ auth: ${auths-name.ywt-wechat-nfywt-mp-base-for-nfywtwe}
|
|
|
+ setHeaders: [ 'pl-terminal', '2' ]
|
|
|
+
|
|
|
+ - id: mg-qa-nfywtwe-notify
|
|
|
+ uri: ${lb-servers.ywt-platform-rest}
|
|
|
+ predicates:
|
|
|
+ - Host=${host-name.mg-qa}
|
|
|
+ - Path=/nfywtwe/notify
|
|
|
+ # 南方医务通公众号 end
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|