# 数据源配置
spring:
  #mq
  rabbitmq:
    host: 113.45.74.175
    port: 5672
    username: guest
    password: guest
    virtualHost: /
    listener:
      simple:
        prefetch: 1 # 每次之能获取一条
        acknowledge-mode: manual # 设置消费端手动ack确认
        retry:
          enabled: true # 是否支持重试
      # 生产者配置
    publisher-confirm-type: correlated   #确认消息已发送到交换机(Exchange)
    publisher-returns: true  #确认消息已发送到队列(Queue)

  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    driverClassName: com.mysql.cj.jdbc.Driver
    druid:
      # 主库数据源
      master:
        url: jdbc:mysql://113.45.74.175:3306/mcwl?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
        username: root
        password: Leng1128
      # 从库数据源
      slave:
        # 从数据源开关/默认关闭
        enabled: false
        url:
        username:
        password:
      # 初始连接数
      initialSize: 5
      # 最小连接池数量
      minIdle: 10
      # 最大连接池数量
      maxActive: 20
      # 配置获取连接等待超时的时间
      maxWait: 60000
      # 配置连接超时时间
      connectTimeout: 30000
      # 配置网络超时时间
      socketTimeout: 60000
      # 配置间隔多久才进行一次检测，检测需要关闭的空闲连接，单位是毫秒
      timeBetweenEvictionRunsMillis: 60000
      # 配置一个连接在池中最小生存的时间，单位是毫秒
      minEvictableIdleTimeMillis: 300000
      # 配置一个连接在池中最大生存的时间，单位是毫秒
      maxEvictableIdleTimeMillis: 900000
      # 配置检测连接是否有效
      validationQuery: SELECT 1 FROM DUAL
      testWhileIdle: true
      testOnBorrow: false
      testOnReturn: false
      webStatFilter:
        enabled: true
      statViewServlet:
        enabled: true
        # 设置白名单，不填则允许所有访问
        allow:
        url-pattern: /druid/*
        # 控制台管理用户名和密码
        login-username: mcwl
        login-password: 123456
      filter:
        stat:
          enabled: true
          # 慢SQL记录
          log-slow-sql: true
          slow-sql-millis: 1000
          merge-sql: true
        wall:
          config:
            multi-statement-allow: true
  # redis 配置
  redis:
    # 地址
    host: 113.45.74.175
    # 端口，默认为6379
    port: 6370
    # 数据库索引
    database: 0
    # 密码
    password: MuYu_Cloud@Redis
    # 连接超时时间
    timeout: 10s
    lettuce:
      pool:
        # 连接池中的最小空闲连接
        min-idle: 5
        # 连接池中的最大空闲连接
        max-idle: 10
        # 连接池的最大数据库连接数
        max-active: 1000
        # #连接池最大阻塞等待时间（使用负值表示没有限制）
        max-wait: -1ms
        time-between-eviction-runs: 6000


# token配置
token:
  # 令牌自定义标识
  header: Authorization
  # 令牌密钥
  secret: abcdefghijklmnopqrstuvwxyz
  # 令牌有效期（默认30分钟）
  expireTime: 30

# 公众号配置
wechat:
  # 应用ID
  appid: wx82d4c3c96f0ffa5b
  # 应用密钥
  secret: abbabcf1da711a3bbd95387ec83edcac

# yml版(application.yml)
aliyun:
  oss:
    bucketName: ybl2112
    endpoint: oss-cn-beijing.aliyuncs.com
    accessKeyId: LTAI5tSHZZ8wHJRP8X4r9TXT
    accessKeySecret: F82IVNx0IGJ3AnP6gSIfcyql1HCXIH
    accessPre: https://ybl2112.oss-cn-beijing.aliyuncs.com/

# 线上环境
mall:
  mgt:
    aliPayConfig:
      protocol: https
      gatewayHost: openapi-sandbox.dl.alipaydev.com
      signType: RSA2
      # 线上应用id
      appId: 2021005119630093
      # 线上应用私钥
      privateKey: MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCQuhRU5iHoabfzJS40A+moMKzb5rmi5XbL59K98CW65Oq/rnzQnj6sCYggIXOLCLKUykZ1XIVa+4V7bGFkMDF0236ncPumnVY/tfCSebLyKl+up1mGeH4mAR6ily7nXAhRnXL+A0015bpCa5FCg2ReN68MEmquB/mHfeLqJfRupwzDWnIWxYSKkFCJ0i47KTFYhM93LHHQ8GrZNNaeiJ6q59MruQI83z0HCxN/DzK4Z2rBWGilwPuYcSEa0STPXYhz8XMXUX/Mlp7dd5zyWeNaxkNRWlhKHvhLVPGvteaEcchs476DIWLCRVXEC1372wMKNrKblzRp7Wi5+l+W14k5AgMBAAECggEAHahk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oM2xXxM16nplrjdBE6IzkpgWb/x2ZI6JCMDyoV2kvF6owW2+QEQ81MrHQMtBRpAvd8nI03gXA5VF3uwp4UjfGpoIAGDBrqQv9DM8vx6C6VJNTT5esZWZSw/+PZ4D19l0/n7gICGx3ugw0Q=
      # 线上应用公钥证书
      appCertPath: cert/pro/appCertPublicKey_2021005119630093.crt
      # 线上支付宝公钥证书路径
      alipayCertPath: cert/pro/alipayCertPublicKey_RSA2.crt
      # 线上支付宝根证书路径
      alipayRootCertPath: cert/pro/alipayRootCert.crt
      notifyUrl: https://36072a51.r27.cpolar.top/ali/pay/notify
      # 线上支付宝网关
      gatewayUrl: https://openapi.alipay.com/gateway.do
      # 绑定回调
      bindUrl: https://36072a51.r27.cpolar.top/ali/pay/callback

huawei:
  obs:
    ak: NWXJ93POA9NCDVV1WQYJ
    sk: 3aBuzYdUgSsxdNnycD2mESnVwtcyjAKPxqewE79N
    bucketName: mcwl
    upload:
      endPoint: obs.cn-south-1.myhuaweicloud.com


