server:
  port: 19000
  servlet:
    session:
      timeout: 86400s
spring:
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    username: agent_skills
    password: agent_skills@xueai666
    url: jdbc:mysql://127.0.0.1:12306/agent_skills?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowMultiQueries=true&autoReconnect=true&maxReconnects=10&failOverReadOnly=false&allowPublicKeyRetrieval=true
    hikari:
      pool-name: ProdHikariPool
      maximum-pool-size: 30
  # Redis配置，引用公共配置
  redis:
    host: ${common.redis.host}
    port: ${common.redis.port}
    password: ${common.redis.password}
    database: ${common.redis.database}
    timeout: 10000
    lettuce:
      pool:
        max-active: 8
        max-wait: -1
        max-idle: 8
        min-idle: 0

# Sa-Token配置
sa-token:
  # token名称
  token-name: Authorization
  # token有效期（默认1天，单位：秒）
  timeout: 86400
  # token过期后是否允许续期
  is-concurrent: true
  # 是否允许同一账号多地登录
  is-share: false
  # token风格（默认：uuid）
  token-style: uuid
  # 是否在cookie中添加token
  is-cookie: false
  # 是否在header中添加token
  is-header: true
  # 是否使用Redis存储token
  is-redis: true
  # Redis配置，引用公共配置
  redis:
    # Redis主机地址
    host: ${common.redis.host}
    # Redis端口
    port: ${common.redis.port}
    # Redis密码
    password: ${common.redis.password}
    # Redis数据库索引
    database: ${common.redis.database}

# 验证码配置
captcha:
  # 是否启用验证码验证
  enabled: true
  # 验证码有效期（秒）
  expire-time: 300
  # 验证码长度
  length: 4

# JetCache配置
jetcache:
  # 开启JetCache注解支持
  enable-stat: true
  # 缓存实例配置
  local:
    # 默认本地缓存
    default:
      type: linkedhashmap
      keyConvertor: fastjson
      limit: 100
  # 远程缓存配置
  remote:
    # 默认远程缓存（Redis）
    default:
      type: redis
      keyConvertor: fastjson
      valueEncoder: java
      valueDecoder: java
      poolConfig:
        minIdle: 5
        maxIdle: 20
        maxTotal: 50
      host: ${common.redis.host}
      port: ${common.redis.port}
      password: ${common.redis.password}
      database: ${common.redis.database}
  # 全局过期时间配置
  global:
    # 全局默认超时时间（毫秒）
    default-expire-in: 86400000
    # 全局统计间隔（毫秒）
    stat-interval-millis: 60000

web:
  upload:
    path: /kexue/agentSkills/upload/

payment:
  # 微信支付配置
  wechat:
    appId: wx7d13d99de5be3bfa
    mchId: 1673321732
    mchKey: e10adc3949ba59abbe56e057f20f883e
    mchSerialNo: 5EFC47D3AA59BFD1AAE548F96B5E19E1C60F067D
    privateKeyPath: apiclient_key.pem
    domain: https://api.mch.weixin.qq.com
    notifyUrl: https://skills.xueai.art/api/pay/wx/notify
    returnUrl: https://skills.xueai.art/pay/success
  # 支付宝支付配置
  alipay:
    appId: 2021004138642603
    privateKey: "MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCBzqh/sBfx8UsiKIzSaGm3QwMape+PEmHaFYsP0XxRLyRe5d3H1r4JBvE/GBCDarXkZMvJ3PKeUpO61i7LZtNBN7M6XbMvs/eiaipUmWCNF4IK+ilhOqr8GNryjb6tBnO0uzd1c7UmAvxF+MKkxti0qfscP+Tr6pkuF14DofOyITY56x0y36DmEc85rr213llQ/bSX5nVPHWfddtrqB+TNFvrnAN10NxnUurDK+wd7fKq3TgMjYNDINPGxFYbYezeIGvYj6E34mFS3b3wyxTcB5DeL4GV1FAWqJ0Yk+3hHT3OdmK/UnNEr55w+r3liQBCDRBoE4fldbG5CtW2/ER0lAgMBAAECggEAC2kgNMFFCZaddS49Ws2k5WA1qKUHjvsdsO8N32EZ3YUYXGM2gLem0uJSWKqD4RmDTcVyiJcsmLBHnjfvux+Z2HTOA4ZzFvFqBlPwzqkA7MYxP0fIVWyz1R9WN9Yv+cPEbhG7CU8XkHTYuknoylVUfWUn1s7jD736oyuYrxcQdgsHOHpLHngvsELLa1pv2EURohvr4p+zirMjFGuz3BVaGgVpWegn0nJ/8n1y0ZTM04Mvm/zXpGQQxfuUxrK2owQMFViY7BrRQXlPVeUM/IPAx7cvxLkR5hl9UgAl+nH6FCsm5osEvUln6VLhGTmNF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akSxlIp22j7pvBXNAZuqud2hQV+TOLKEUh1W3izTgMj/Ejoh3ZsCjgDRtTVgaytzSdHYrhNku+pIrl15/xVGJED99RYXkR8GHawxuK+vWVmxU0tiTCwTsqLz43v6TtCZ+/UfLL/luwp9B4ZvB+0qon82LILYr6oxs10kE2IAvryuDToAc1s/v/36jgt+7DXwqzfUDksHhVLHdJHChyc4ax5HmMsBwIDAQAB"
    notifyUrl: https://skills.xueai.art/api/pay/alipay/trade/notify
    returnUrl: https://skills.xueai.art/api/pay/alipay/trade/return
    signType: RSA2
    charset: UTF-8
    gatewayUrl: https://openapi.alipay.com/gateway.do