## spring security 配置
security:
  oauth2:
    client:
      client-id: ENC(ltJPpR50wT0oIY9kfOe1Iw==)
      client-secret: ENC(ltJPpR50wT0oIY9kfOe1Iw==)
      scope: server
      ignore-urls:
        - /error
        - /druid/**
        - /actuator/**
        - /v2/api-docs

# 数据源
spring:
  autoconfigure:
    exclude: org.springframework.cloud.gateway.config.GatewayAutoConfiguration,org.springframework.cloud.gateway.config.GatewayClassPathWarningAutoConfiguration
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    druid:
      driver-class-name: org.mariadb.jdbc.Driver
      username: ${MYSQL_USER:ocean_crude_dev}
      password: ${MYSQL_PWD:aa#JVwuGJp*^}
      url: jdbc:mariadb://${MYSQL_HOST:123.249.82.141}:${MYSQL_PORT:3306}/${MYSQL_DB:ocean_crude_dev}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true&allowPublicKeyRetrieval=true
      stat-view-servlet:
        enabled: true
        allow: ""
        url-pattern: /druid/*
        #login-username: admin
        #login-password: admin
      filter:
        stat:
          enabled: true
          log-slow-sql: true
          slow-sql-millis: 10000
          merge-sql: false
  kafka:
    # kafka服务地址
    bootstrap-servers: 120.46.215.93:9094,120.46.208.177:9094,119.3.229.202:9094
    # bootstrap-servers: localhost:9092,localhost:9093,localhost:9094
    producer:
      # 生产者消息key序列化方式
      key-serializer: org.apache.kafka.common.serialization.StringSerializer
      # 生产者消息value序列化方式
      value-serializer: org.apache.kafka.common.serialization.StringSerializer
    consumer:
      # 消费者组
      group-id: message-consumer-group
      # 消费者消息value反序列化方式
      key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
      # 消费者消息value反序列化方式
      value-deserializer: org.apache.kafka.common.serialization.StringDeserializer
# Logger Config
logging:
  level:
    com.lutao.cloud.collect.mapper: debug
# 租户表维护
haspm:
  tenant:
    column: tenant_id
    tables:
fastdfs:
  connect-timeout: 5000
  network-timeout: 30000
  charset: UTF-8
  http-port: 8080
  http-secret-key: FastDFS1234567890
  http-anti-steal-token: false
  tracker-server: 123.249.82.141:22122
  min-pool-size: 30
  max-pool-size: 5
  wait-times: 200
  file-baseurl: http://123.249.82.141:80