146 lines
4.1 KiB
YAML
146 lines
4.1 KiB
YAML
hystrix:
|
||
command:
|
||
default:
|
||
execution:
|
||
isolation:
|
||
strategy: SEMAPHORE
|
||
thread:
|
||
timeoutInMilliseconds: 300000
|
||
server:
|
||
port: 8111
|
||
spring:
|
||
application:
|
||
name: gateway-server
|
||
profiles:
|
||
active: dev
|
||
cloud:
|
||
gateway:
|
||
###设置跨域
|
||
globalcors:
|
||
corsConfigurations:
|
||
'[/**]':
|
||
allowedOrigins: "*"
|
||
allowedMethods: "*"
|
||
allowedHeaders: "*"
|
||
#default-filters:
|
||
#- DedupeResponseHeader=Access-Control-Allow-Origin, RETAIN_UNIQUE
|
||
routes:
|
||
- id: jlzx-jlcyry
|
||
predicates:
|
||
- Path= /jlcyry/**
|
||
uri: lb://yxt-jlzx-jlcyry
|
||
filters:
|
||
- StripPrefix=1
|
||
|
||
- id: jlzx-system
|
||
predicates:
|
||
- Path= /system/**
|
||
uri: lb://yxt-jlzx-system
|
||
filters:
|
||
- StripPrefix=1
|
||
|
||
- id: jlzx-oa
|
||
predicates:
|
||
- Path= /oa/**
|
||
uri: lb://yxt-jlzx-oa
|
||
filters:
|
||
- StripPrefix=1
|
||
|
||
- id: yxt-workflow
|
||
predicates:
|
||
- Path= /workflow/**
|
||
uri: lb://yxt-workflow
|
||
filters:
|
||
- StripPrefix=1
|
||
|
||
- id: yxt-messagecenter
|
||
predicates:
|
||
- Path= /messagecenter/**
|
||
uri: lb://yxt-messagecenter
|
||
filters:
|
||
- StripPrefix=1
|
||
|
||
- id: yxt-attend
|
||
predicates:
|
||
- Path= /attend/**
|
||
uri: lb://yxt-attend
|
||
filters:
|
||
- StripPrefix=1 #忽略Path配置的个数,此处为1代表访问/api/customer/**时,会将api忽略,真实的访问地址为lb://customer-center/customer/**,如果为2,则为lb://customer-center/**
|
||
|
||
- id: jlzx-cxjl
|
||
predicates:
|
||
- Path= /cxjl/**
|
||
uri: lb://yxt-jlzx-cxjl
|
||
filters:
|
||
- StripPrefix=1
|
||
|
||
ignore:
|
||
whites:
|
||
- /oa/file/download
|
||
- /oa/file/upload
|
||
- /system/user/loginReturnBase
|
||
- /system/user/loginReturnOa
|
||
- /system/user/loginReturnCxjl
|
||
- /system/user/login #pc端登录
|
||
- /system/user/save #用户注册
|
||
- /system/user/getVerificationCode #用户注册获取手机验证码
|
||
- /system/organization/save #单位注册
|
||
- /system/organization/getVerificationCode #单位注册获取手机验证码
|
||
- /jlcyry/staffInfo/isRepeatByIDCard #单位注册获取手机验证码
|
||
- /system/v1/appusers/login
|
||
###单位级别、单位类别、下载委托书
|
||
- /system/dictCommon/getDwType
|
||
- /system/dictCommon/getRylb
|
||
- /system/dictCommon/getDwJb
|
||
- /system/region/getCity
|
||
- /system/region/getCounty
|
||
- /system/region/getProvince
|
||
- /system/organization/download
|
||
- /system/user/userList #用户列表的获取
|
||
- /system/v1/appVersion/selectNewVersion
|
||
- /system/v1/appVersion/save
|
||
- /system/v1/appVersion/selectNewAppVersion
|
||
- /system/organization/selectByOrgCode
|
||
- /system/v1/appusers/selectCaUserDetails #ca回调接口
|
||
- /system/v1/appusers/selectPcCreateQrCode #PC获取登录二维码
|
||
- /system/v1/appusers/selectCreateQrCodeOne
|
||
- /cxjl/v1/punishments/getExcelInfo
|
||
- /cxjl/v1/promises/orgPagerListPublicity
|
||
- /system/organization/selectByOrgCodeOne
|
||
- /system/organization/generateWordTemplate
|
||
|
||
|
||
- /system/api/clickWord
|
||
- /system/file/upload
|
||
- /oa/file/upload
|
||
- /jlcyry/file/upload
|
||
- /cxjl/file/upload
|
||
- /cxjl/v1/promisefiles/upload2
|
||
- /system/index/selectCode
|
||
- /system/index/orgDetails
|
||
- /system/index/indexUserDetails
|
||
- /system/index/indexOrgDetails
|
||
- /cxjl/v1/promisebookpdfs/exportOrder
|
||
|
||
|
||
whitesTwo:
|
||
###swagger相关开始
|
||
- /doc.html
|
||
- /webjars/**
|
||
- /swagger-resources
|
||
- /v2/**
|
||
- /favicon.ico
|
||
- /upload/**
|
||
- /system/user/reGetPwd/** #忘记密码
|
||
- /system/v1/rolemenus/**
|
||
- /system/v1/apporganizations/**
|
||
- /system/v1/appusers/selectIdNo/**
|
||
- /system/v1/appusers/selectLunXunResult/**
|
||
- /system/v1/appSubsetVersion/**
|
||
- /system/v1/appSubsets/**
|
||
- /cxjl/v1/promises/initPromise/**
|
||
- /cxjl/v1/promisebookpdfs/selectPromisePdf/**
|
||
- /cxjl/v1/promises/detailsVo/**
|
||
###swagger相关结束
|
||
|