debug: false

server:
  port: 8090

# 开发不启动，部署时启动，用于跳过权限过滤
runOnProduct: false

superseturl: "http://119.130.113.245:8088"
supersetReplace: "localhost:8080, 127.0.0.1:8080, 192.168.50.34:8080"
supersetReplaceAs: "119.130.113.245:8005"
getTokenUrl: "http://119.130.113.245:8004/web/login/getJwt"
jwt-secret: "SOME_SECRET_KEY"
clickhouseUrl: "jdbc:clickhouse://139.159.192.185:8123/default"
clickhouseUser: "clickhouseUser"
clickhousePassword: "79B084A8D7363488DEBFA5D151CCC9B1"

# 雪花算法生成分布式id
# 无法通过spring注入
#snowflake:
#  workerid: 0
#  datacenterid: 0

jwt:
  expire-time: 7200000

fdfs:
  so-timeout: 1501
  connect-timeout: 601
  thumb-image:             #缩略图生成参数
    width: 150
    height: 150
  tracker-list:            #TrackerList参数,支持多个
    - 120.78.254.166:22122

spring:
  elasticsearch:
    rest:
      uris: http://192.168.50.34:9200

  # freemarker
  freemarker:
    suffix: .ftl
    content-type: text/html
    charset: UTF-8
    cache: false
    template-loader-path:
      - classpath:/templates

  http:
    encoding:
      charset: UTF-8
      force: true
      enabled: true
  # redis
  redis:
    host: localhost
    port: 6379
    password: 360lj.com!
  # jpa 已在bean配置中配置
#  jpa:
#    properties:
#      hibernate:
#        hbm2ddl:
#          auto: update
#    database-platform: com.liangjian.dataplatform.member.util.MySQL5DialectUTF8
#    show-sql: true
#    open-in-view: true
  datasource:
    # 主数据源
    primary:
#      driver-class-name: com.mysql.jdbc.Driver
#      url: jdbc:mysql://localhost:3306/hadoop_dw?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC
#      username: root
#      password: root
      url: jdbc:mysql://192.168.50.34:3306/hadoop_dw?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC
      username: cdh
      password: CDH360lj#com2019
      druid:
        validationQuery: SELECT 1
        #初始化连接数
        initialSize: 10
        #最小闲置数
        minIdle: 10
        #最大活动数
        maxActive: 20
        minEvictableIdleTimeMillis: 180000
        testOnBorrow: true
        testWhileIdle: true
        removeAbandoned: true
        removeAbandonedTimeout: 1800
        logAbandoned: true
        poolPreparedStatements: true
        maxOpenPreparedStatements: 100
    #次数据源
    secondary:
      driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
      url: jdbc:sqlserver://219.128.77.96:1433;databaseName=MemberData;
      username: caixukun
      password: cxk@membercenter!@#
      druid:
        validationQuery: SELECT 1
        #初始化连接数
        initialSize: 10
        #最小闲置数
        minIdle: 10
        #最大活动数
        maxActive: 20
        minEvictableIdleTimeMillis: 180000
        testOnBorrow: true
        testWhileIdle: true
        removeAbandoned: true
        removeAbandonedTimeout: 1800
        logAbandoned: true
        poolPreparedStatements: true
        maxOpenPreparedStatements: 100
    #正式数据库
    tertiary:
      driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
      url: jdbc:sqlserver://219.128.77.96:1433;databaseName=Mall;
      username: caixukun
      password: cxk@membercenter!@#
      druid:
        validationQuery: SELECT 1
        #初始化连接数
        initialSize: 10
        #最小闲置数
        minIdle: 10
        #最大活动数
        maxActive: 20
        minEvictableIdleTimeMillis: 180000
        testOnBorrow: true
        testWhileIdle: true
        removeAbandoned: true
        removeAbandonedTimeout: 1800
        logAbandoned: true
        poolPreparedStatements: true
        maxOpenPreparedStatements: 100
    # 分表库, 目前分表已有es代替，不再使用
#    subtables:
#      driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
#      url: jdbc:sqlserver://219.128.77.96:1433;databaseName=MemberData;
#      username: caixukun
#      password: cxk@membercenter!@#
#      druid:
#        validationQuery: SELECT 1
#        #初始化连接数
#        initialSize: 10
#        #最小闲置数
#        minIdle: 10
#        #最大活动数
#        maxActive: 20
#        minEvictableIdleTimeMillis: 180000
#        testOnBorrow: true
#        testWhileIdle: true
#        removeAbandoned: true
#        removeAbandonedTimeout: 1800
#        logAbandoned: true
#        poolPreparedStatements: true
#        maxOpenPreparedStatements: 100
    fourthly:
      driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
      url: jdbc:sqlserver://192.168.50.32:1433;databaseName=MemberData;
      username: sa
      password: saljhy!@#
      druid:
        validationQuery: SELECT 1
        #初始化连接数
        initialSize: 10
        #最小闲置数
        minIdle: 10
        #最大活动数
        maxActive: 20
        minEvictableIdleTimeMillis: 180000
        testOnBorrow: true
        testWhileIdle: true
        removeAbandoned: true
        removeAbandonedTimeout: 1800
        logAbandoned: true
        poolPreparedStatements: true
        maxOpenPreparedStatements: 100

# 微信接口配置
dream:
  weixin:
    dev-mode: true
    wx-configs:
    # - appId: wx371fad42307107eb # 亮键集团
    - appId: wxc095515a40195070 # 优医
      # appSecret: 2064d09c0c56c5221c42a7e119691797 # 亮键集团
      appSecret: 9a4d7f1ff87c7f0bf8d5c28cd5be4f35 # 优医
      # token: 2019360ljabcd #亮键集团
      token: liangjianYF # 优医
      # encodingAesKey: JNHxDggKUT4ngMAdTTgxMqF8AXHgQIq5nvnKIj9ar2P # 亮键集团
      encodingAesKey: I1qaGp975D85JhDDhhJrMNgIjY6dbrw1gZyIJooJ4xC
      messageEncrypt: false
    wxa-config:
      app-id: wx371fad42307107eb
      app-secret: 2064d09c0c56c5221c42a7e119691797