提交 bf7e8980 编写于 作者: ibiz4j's avatar ibiz4j

删除 application-gateway.yml.ftl

上级 9a20896a
<#ibiztemplate>
TARGET=PSSYSAPP
</#ibiztemplate>
<#assign deploysys = sys.getName()?lower_case>
<#if sys.getDeploySysId()?? && (sys.getDeploySysId()?length lt 16)>
<#assign deploysys = sys.getDeploySysId()?lower_case>
</#if>
<#assign defaultApi = "api">
<#if app.getPSSysServiceAPI()??>
<#assign defaultApi = app.getPSSysServiceAPI().codeName?lower_case>
<#else>
<#if sys.getAllPSDevSlnMSDepAPIs()??>
<#list sys.getAllPSDevSlnMSDepAPIs() as depSysApi>
<#if depSysApi.getPSSysServiceAPI()?? >
<#assign defaultApi = depSysApi.codeName?lower_case>
<#break>
</#if>
</#list>
</#if>
</#if>
<#assign haswfentity=false>
<#list item.getAllPSAppDataEntities() as appDataEntity>
<#assign psDataEntity=appDataEntity.getPSDataEntity()>
<#if psDataEntity.hasPSDEWF()?? && psDataEntity.hasPSDEWF()==true>
<#assign haswfentity=true>
<#break>
</#if>
</#list>
spring:
cloud:
gateway:
discovery:
locator:
enabled: false
lowerCaseServiceId: true
routes: #配置网关路由规则
<#if sys.getPSSystemSetting()?? && sys.getPSSystemSetting().getDataAccCtrlArch()?? && sys.getPSSystemSetting().getDataAccCtrlArch()==1>
- id: cloud_uaa
uri: lb://${r'${ibiz.ref.service.uaa:ibzuaa-api}'}
order: 10
predicates:
- Path=/v7/**,/uaa/**,/sysauthlogs
- id: ibizcloud_ou
uri: lb://${r'${ibiz.ref.service.ou:ibzou-api}'}
order: 20
predicates:
- Path=/ibzemployees,/ibzemployees/**,/sysemployees,/sysemployees/**,/ibzdepartments,/ibzdepartments/**,/sysdepartments,/sysdepartments/**,/ibzorganizations,/ibzorganizations/**,/sysorganizations,/sysorganizations/**
- id: cloud_oss
uri: lb://${r'${ibiz.ref.service.disk:ibzdisk-api}'}
order: 40
predicates:
- Path=/ibizutil/**,/net-disk/**
- id: cloud_conf
uri: lb://${r'${ibiz.ref.service.conf:ibzuaa-api}'}
order: 50
predicates:
- Path=/configs/**
- id: cloud_dict
uri: lb://${r'${ibiz.ref.service.dict:ibzdict-api}'}
order: 60
predicates:
- Path=/dictionar**/**
</#if>
<#if haswfentity==true>
- id: cloud_workflow
uri: lb://${r'${ibiz.ref.service.wf:ibzwf-api}'}
order: 30
predicates:
- Path=/wfcore/**
</#if>
<#assign serviceId="$"+"{ibiz.ref.service."+deploysys+"-"+defaultApi+":"+deploysys+"-"+defaultApi+"}">
- id: gw-default-appdata
uri: lb://${serviceId}
order: 101
predicates:
- Path=/appdata<#if sys.getPSSystemSetting()?? && sys.getPSSystemSetting().getDataAccCtrlArch()?? && sys.getPSSystemSetting().getDataAccCtrlArch()==2>,/v7/**,/appdata/ibizutil/**,/configs/**</#if>
<#list item.getAllPSAppDataEntities() as appDataEntity>
<#assign serviceId="">
<#assign serviceUrl=srfpluralize(appDataEntity.codeName?lower_case)>
<#assign appEntity=appDataEntity.name?lower_case>
<#assign psDataEntity=appDataEntity.getPSDataEntity()>
<#assign systemName=sys.getCodeName()?lower_case>
<#assign sybSysServiceType=(psDataEntity.getPSSubSysServiceAPI().getServiceType())!''>
<#comment>服务类型为中台和MASA走自身处理</#comment>
<#if psDataEntity.getStorageMode()==4 && (sybSysServiceType!='MIDDLEPLATFORM' && sybSysServiceType!='MASA')>
<#comment>serviceApi模式</#comment>
<#assign serviceId=(psDataEntity.getPSSubSysServiceAPI().getServiceCodeName())!''>
<#assign serviceId="$"+"{ibiz.ref.service."+serviceId?lower_case+":"+serviceId+"}">
<#assign serviceUrl=srfpluralize(appDataEntity.codeName?lower_case)>
- id: ${appEntity}
uri: lb://${serviceId}
order: 200
predicates:
- Path=/${serviceUrl},/${serviceUrl}/**
<#else>
<#assign sysApi=appDataEntity.getPSDEServiceAPI().getPSSysServiceAPI().codeName?lower_case>
<#assign serviceId="$"+"{ibiz.ref.service."+deploysys+"-"+sysApi+":"+deploysys+"-"+sysApi+"}">
- id: ${appEntity}
uri: lb://${serviceId}
order: 200
predicates:
- Path=/${serviceUrl},/${serviceUrl}/**
</#if>
</#list>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册