|
@@ -0,0 +1,54 @@
|
|
|
+spring:
|
|
|
+ cloud:
|
|
|
+ gateway:
|
|
|
+ routes:
|
|
|
+ - id: doc-qa
|
|
|
+ uri: ${servers-mapping.web-static}
|
|
|
+ predicates:
|
|
|
+ - Host=${host-name.doc-qa}
|
|
|
+ - Path=/
|
|
|
+ filters:
|
|
|
+ - name: Auth
|
|
|
+ args:
|
|
|
+ auth: ${auths-name.ywt-doctor-pc-app}
|
|
|
+ setHeaders: [ 'pl-terminal', '15' ]
|
|
|
+
|
|
|
+ - id: doc-qa-user-login
|
|
|
+ uri: ${servers-mapping.web-static}
|
|
|
+ predicates:
|
|
|
+ - Host=${host-name.doc-qa}
|
|
|
+ - Path=/user/login
|
|
|
+
|
|
|
+ - id: doc-qa-auth-wechat-oauth2
|
|
|
+ uri: ${lb-servers.internethospital-web}
|
|
|
+ predicates:
|
|
|
+ - Host=${host-name.doc-qa}
|
|
|
+ - Path=/api/auth/wechat/oauth2,/api/account/login
|
|
|
+ filters:
|
|
|
+ - StripPrefix=1
|
|
|
+ - name: Auth
|
|
|
+ args:
|
|
|
+ auth: ${auths-name.ywt-doctor-pc-app}
|
|
|
+ setHeaders: [ 'pl-terminal', '15' ]
|
|
|
+
|
|
|
+ - id: doc-qa-api-account-update-psw
|
|
|
+ uri: ${lb-servers.internethospital-web}
|
|
|
+ predicates:
|
|
|
+ - Host=${host-name.doc-qa}
|
|
|
+ - Path=/api/account/updatePassword,/api/system/verifycode,/api/system/getVerifyEncryptCode,/api/commonAnnouncement/getCommonAnnouncement,/api/dev/opLog,/api/account/checkForgetPasswordSms
|
|
|
+ filters:
|
|
|
+ - StripPrefix=1
|
|
|
+
|
|
|
+ - id: doc-qa-api
|
|
|
+ uri: ${lb-servers.internethospital-web}
|
|
|
+ predicates:
|
|
|
+ - Host=${host-name.doc-qa}
|
|
|
+ - Path=/api
|
|
|
+ filters:
|
|
|
+ - StripPrefix=1
|
|
|
+ - name: Auth
|
|
|
+ args:
|
|
|
+ auth: ${auths-name.ywt-doctor-pc-app}
|
|
|
+ authResponse401: true
|
|
|
+ setHeaders: [ 'pl-terminal', '15' ]
|
|
|
+
|