application-dev.yml.ftl 4.6 KB
Newer Older
ibizdev's avatar
ibizdev committed
1 2 3
<#ibiztemplate>
TARGET=PSSYSTEM
</#ibiztemplate>
zhouweidong's avatar
zhouweidong committed
4 5
server:
  port: 8080
sq3536's avatar
sq3536 committed
6
<#assign zuul=false>
sq3536's avatar
sq3536 committed
7
<#if item.getAllPSDataEntities?? && item.getAllPSDataEntities()??>
sq3536's avatar
sq3536 committed
8 9 10 11 12 13 14 15 16 17 18 19 20
    <#assign haswfentity=false>
    <#list item.getAllPSDataEntities() as appDataEntity>
        <#assign serviceId="">
        <#assign serviceUrl=srfpluralize(appDataEntity.codeName?lower_case)>
        <#assign appEntity=appDataEntity.name?lower_case>
        <#assign psDataEntity=appDataEntity>
        <#assign systemName=sys.getCodeName()?lower_case>
        <#if psDataEntity.hasPSDEWF()?? && psDataEntity.hasPSDEWF()==true>
            <#assign haswfentity=true>
        </#if>
        <#if psDataEntity.getStorageMode()==4>
            <#comment>serviceApi模式</#comment>
            <#assign serviceId=(psDataEntity.getPSSubSysServiceAPI().getServiceCodeName())!''>
sq3536's avatar
sq3536 committed
21
            <#assign serviceUrl=srfpluralize(appDataEntity.codeName?lower_case)>
sq3536's avatar
sq3536 committed
22 23 24 25 26 27 28 29 30 31 32 33 34 35
            <#if serviceId!="">
                <#assign zuul=true>
            </#if>
        </#if>
    </#list>
    <#if haswfentity==true>
        <#assign zuul=true>
    </#if>
    <#if sys.getPSSystemSetting()?? && sys.getPSSystemSetting().getDataAccCtrlArch()?? && sys.getPSSystemSetting().getDataAccCtrlArch()==1>
        <#assign zuul=true>
    </#if>
</#if>

<#if zuul==true && item.getAllPSDataEntities?? && item.getAllPSDataEntities()??>
sq3536's avatar
sq3536 committed
36 37 38 39
#zuul网关路由设置
zuul:
  routes:
    <#assign haswfentity=false>
40
    <#list item.getAllPSDataEntities() as appDataEntity>
sq3536's avatar
sq3536 committed
41 42 43
        <#assign serviceId="">
        <#assign serviceUrl=srfpluralize(appDataEntity.codeName?lower_case)>
        <#assign appEntity=appDataEntity.name?lower_case>
44
        <#assign psDataEntity=appDataEntity>
sq3536's avatar
sq3536 committed
45
        <#assign systemName=sys.getCodeName()?lower_case>
sq3536's avatar
sq3536 committed
46
        <#if psDataEntity.hasPSDEWF()?? && psDataEntity.hasPSDEWF()==true>
sq3536's avatar
sq3536 committed
47 48 49 50 51 52
            <#assign haswfentity=true>
        </#if>
        <#if psDataEntity.getStorageMode()==4>
            <#comment>serviceApi模式</#comment>
            <#assign serviceId=(psDataEntity.getPSSubSysServiceAPI().getServiceCodeName())!''>
            <#assign serviceUrl=srfpluralize(appDataEntity.name?lower_case)>
53 54
        <#if serviceId!="">
        <#assign serviceId="$"+"{ibiz.ref.service."+serviceId?lower_case+":"+serviceId+"}">
55 56 57 58
    ${appEntity}:
      path: /${serviceUrl}/**
      serviceId: ${serviceId}
      stripPrefix: false
59
            </#if>
sq3536's avatar
sq3536 committed
60 61 62
        </#if>
    </#list>
    <#if haswfentity==true>
zhouweidong's avatar
zhouweidong committed
63 64 65 66
    wfcore:
      path: /wfcore/**
      serviceId: ${r'${ibiz.ref.service.wf:ibzwf-api}'}
      stripPrefix: true
sq3536's avatar
sq3536 committed
67
    </#if>
68
    <#if sys.getPSSystemSetting()?? && sys.getPSSystemSetting().getDataAccCtrlArch()?? && sys.getPSSystemSetting().getDataAccCtrlArch()==1>
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
    loginv7:
      path: /v7/login
      serviceId: ${r'${ibiz.ref.service.uaa:ibzuaa-api}'}
      stripPrefix: false
    changepwd:
      path: /v7/changepwd
      serviceId: ${r'${ibiz.ref.service.uaa:ibzuaa-api}'}
      stripPrefix: false
    uaa:
      path: /uaa/**
      serviceId: ${r'${ibiz.ref.service.uaa:ibzuaa-api}'}
      stripPrefix: false
    config:
      path: /configs/**
      serviceId: ${r'${ibiz.ref.service.uaa:ibzuaa-api}'}
      stripPrefix: false
sq3536's avatar
sq3536 committed
85
        <#if sys.getCodeName()!='ibzou' && sys.getCodeName()!='ibzrt'>
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
    oucore:
      path: /ibzorganizations/**
      serviceId: ${r'${ibiz.ref.service.ou:ibzou-api}'}
      stripPrefix: false
    oudict:
      path: /dictionarys/**/Ibzou**
      serviceId: ${r'${ibiz.ref.service.ou:ibzou-api}'}
      stripPrefix: false
    ou:
      path: /ibzdepartments/**
      serviceId: ${r'${ibiz.ref.service.ou:ibzou-api}'}
      stripPrefix: false
    uaadict:
      path: /dictionarys/**/SysOperator
      serviceId: ${r'${ibiz.ref.service.uaa:ibzuaa-api}'}
      stripPrefix: false
    dict:
      path: /dictionarys/**
      serviceId: ${r'${ibiz.ref.service.dict:ibzdict-api}'}
      stripPrefix: false
    disk:
      path: /net-disk/**
      serviceId: ${r'${ibiz.ref.service.disk:ibzdisk-api}'}
      stripPrefix: false
    ou_sys_org:
      path: /sysorganizations/**
      serviceId: ${r'${ibiz.ref.service.ou:ibzou-api}'}
      stripPrefix: false
    ou_sys_dept:
      path: /sysdepartments/**
      serviceId: ${r'${ibiz.ref.service.ou:ibzou-api}'}
      stripPrefix: false
    lite-core:
      path: /lite/**
      serviceId: ${r'${ibiz.ref.service.lite:ibzlite-api}'}
121 122 123 124
      stripPrefix: false
    sysauthlog:
      path: /sysauthlogs
      serviceId: ${r'${ibiz.ref.service.uaa:ibzuaa-api}'}
125
      stripPrefix: false
sq3536's avatar
sq3536 committed
126
        </#if>
127
    </#if>
sq3536's avatar
sq3536 committed
128 129 130 131
    <#comment>通过设置该参数,避免Zuul转发请求时丢失Authorization请求头信息</#comment>
  sensitive-headers:
    - Cookie,Set-Cookie,Authorization
</#if>