spring:
  datasource:
    druid:
      # 监控页面
      web-stat-filter:
        enabled: true
        url-pattern: /*
        profileEnable: true
        exclusions: '*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*'
      statViewServlet:
        enabled: true
        # 设置白名单，不填则允许所有访问
        allow:
          url-pattern: /druid/*
        # 控制台管理用户名和密码
        login-username: admin
        login-password: admin
    dynamic:
      druid: #以下是全局默认值，可以全局更改
        filters: stat,slf4j
        useGlobalDataSourceStat: true
        stat:
          log-slow-sql: true
          merge-sql: true
          slow-sql-millis: 10000
ibiz:
  filePath: /app/file/
  deploysystems:
    gateway:
      settings:
        sysdbscheme:
          default:
            datasource: rtds
        sysutil:
          unistate:
            serviceurl: ${zookeeper.address:127.0.0.1:2181}
          cache:
            serviceurl: ${spring.redis.host:127.0.0.1}:${spring.redis.port:6379}
    {{lowerCase system.deploySysId}}:
      runtimeClassName: {{packageName}}.runtime.SystemRuntime
      settings:
        sysdbscheme:
          default:
            datasource: {{lowerCase system.deploySysId}}__default
            dbtype: ${spring.datasource.dbtype:MYSQL}
        {{#if system.subServiceApiModules}}
        subsysserviceapi:
        {{#each system.subServiceApiModules as |submodule|}}
          {{@key}}:
          {{#each submodule as |apiitem|}}
            {{lowerCase apiitem.codeName}}:
              serviceurl: {{apiitem.servicePath}}
          {{/each}}
        {{/each}}
        {{/if}}
  servicehub:
    id: {{lowerCase system.deploySysId}}
    register-naming-service: true
    publish-config: true
    enableAppGateway: true
    tempFolder: ${ibiz.filePath:/app/file/}temp/
    reportFolder: ${ibiz.filePath:/app/file/}report/
    fontFolder: ${ibiz.filePath:/app/file/}font/
    fileFolder: ${ibiz.filePath:/app/file/}
    loadDeploySystems:
      - gateway
      - {{lowerCase system.deploySysId}}
    systemSettings:
      cloudclientutil:
        serviceurl: lb://ebsx-oldapi
        accesstokenurl: lb://ibizcloud-uaa/v7/login
        clientid: aibizhi
        clientsecret: 123456

