# 项目相关配置
jsowell:
  # 文件路径 示例（ Windows配置D:/jsowell/uploadPath，Linux配置 /home/jsowell/uploadPath）
  profile: /www/wwwroot/jsowellftpprd

# 数据源配置
spring:
  # redis 配置
  redis:
    # 地址
    host: r-uf6k0uet7mihr5z78f.redis.rds.aliyuncs.com
    # 端口，默认为6379
    port: 6379
    # 数据库索引
    database: 0
    # 账号
    username: jsowell
    # 密码
    password: js@160829
    # 连接超时时间
    timeout: 10s
    lettuce:
      pool:
        # 连接池中的最小空闲连接
        min-idle: 0
        # 连接池中的最大空闲连接
        max-idle: 8
        # 连接池的最大数据库连接数
        max-active: 8
        # #连接池最大阻塞等待时间（使用负值表示没有限制）
        max-wait: -1ms

  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    driverClassName: com.mysql.cj.jdbc.Driver
    druid:
      # 主库数据源
      master:
        url: jdbc:mysql://rm-uf6ra51u33dc3798l.mysql.rds.aliyuncs.com:3306/jsowell_prd?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
        username: jsowell
        password: js@160829
      # 从库数据源
      slave:
        # 从数据源开关/默认关闭
        enabled: false
        url:
        username:
        password:
      # 初始连接数
      initialSize: 5
      # 最小连接池数量
      minIdle: 10
      # 最大连接池数量
      maxActive: 20
      # 配置获取连接等待超时的时间
      maxWait: 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: jsowell
        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

# Swagger配置
swagger:
  # 是否开启swagger
  enabled: false
  # 请求前缀
  pathMapping: /dev-api

# 日志配置
logging:
  level:
    com.jsowell: info
    org.springframework: warn


# 基础URL前缀
baseurl:
  prefix: https://api.jsowellcloud.com

# Minio配置
minio:
  url: http://localhost:9000
  accessKey: minioadmin
  secretKey: minioadmin
  bucketName: jsowell

aliyunoss:
  # 地域节点
  endpoint: http://oss-cn-shanghai.aliyuncs.com
  # AccessKey
  accessKeyId: LTAI5tBgCN4xuxQF1HV9rf7t
  # AccessKey 秘钥
  accessKeySecret: tsxMyujk6KY9h0e4Bx0D7ld16PBUyW
  # bucket名称
  bucketName: ydc-oss-prod
  # bucket下文件夹的路径
  filehost: img
  # 访问域名
  # url: https://ydc-oss-prod.oss-cn-shanghai.aliyuncs.com
  url: https://img.jsowellcloud.com

########################微信支付参数#######################################
#微信商户号
wechat:
  mchId: 1632405339
  #商家API证书序列号
  mchSerialNo: 7596EF543159D21D25F199F82B9045FB9A82D7E0
  #商户在微信公众平台申请服务号对应的APPID
  appId: wxbb3e0d474569481d
  #回调报文解密V3密钥key
  v3Key: bbac689f4654b209de4d6944808ec80b
  #微信获取平台证书列表地址
  certificates:
    url: https://api.mch.weixin.qq.com/v3/certificates
  #微信统一下单Navtive的API地址，用于二维码支付
  unifiedOrder:
    url: https://api.mch.weixin.qq.com/v3/pay/transactions/native
    #微信统一下单JSAPI的API地址，用于微信小程序
    jsurl: https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi
  # 申请退款API
  refund:
    jsurl: https://api.mch.weixin.qq.com/v3/refund/domestic/refunds
  #异步接收微信支付结果通知的回调地址
  callback: https://api.jsowellcloud.com/uniapp/pay/wechatPayCallback
  #异步接收微信退款结果通知的回调地址
  refundCallback: https://api.jsowellcloud.com/uniapp/pay/wechatPayRefundCallback
  #商户证书私钥路径
  key:
    path: /usr/local/1632405339_20221125_cert/apiclient_key.pem
########################微信支付参数#######################################

# 汇付支付
adapay:
  debugFlag: false
  prodMode: true
  callback: https://api.jsowellcloud.com/uniapp/pay/adapayCallback
  jsowell:
    apiKey: api_live_b9bff039-0598-4491-88e7-06ca6dc7289e
    mockApiKey: api_test_15662261-8123-4b51-95d9-ad0af60eab53
    rsaPrivateKey: MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAOl7qJyrkrks7FKnBPr/Sngub897Ni5Bkn5pEa81zfs+4LrYsuWZQ8G1n7Q8/rjH4G/T7vPX+So41vNU74Sqn6E1b3BpW+wWBULhs9p1JSPT7Kzima4FmPigUr80NLrlVKn5bW+V4/odpN+bJWvpxdd024edHAD8mXX1M1N1lU5ZAgMBAAECgYA+mxbiM6tbFe2kV/6g4vVv9luq0cn8az7BwKCqT44U8Y5G67ZElG0zsuTI6pYOrCHFOpnXLrE0HhudEchL1YiJqW/SDKaoC4oDZf5nybhh11kOR3N5maLqvUz/WxdNy17th/2XxqVfTTu752X9yeeoXDj89N5OxyMl0jmxlhWbgQJBAPeoitR7FCxcjKtcKsEyrtV3T0H2WtQ2Pbku7CGe6VCtL4+DJNeUentn7plBj4IhbH3EwNmyCYzNlfp0X2d8fWkCQQDxWONjt1vV/dyKQYRvSVw/SWQWlR7g2OnHZokU2SNeewiCX2umCdYKh0doN0JHbSTLOGG5IA3+6Vxam+9hzPtxAkEAjr+QHf8/Vn6V+mOqpSdgjNwzS/MC0ZTeKPI52vsswnrAkjjmMHh9zMnQRnf6juhTD38sJY6wYH9TdkRDhXPFGQJATiFYe4+AS2ZDXv6WwPAezN4VaLodpOyTwdmPxxAEQzHRL2N0levZPs9MbpB1BGpw3tkBycx2u28QVsTkWeTiAQJAGRsAVr6Rhhdaq2vTjt9orhMVwt6BCoSQ0zzHSYilv4PMOtSu1Pyt4K8BDv3gjEyAi1GtE7kkJ0dcbsvOGiLzqQ==
    appId: app_d0c80cb1-ffc8-48cb-a030-fe9bec823aaa
    wechatAppId: wxbb3e0d474569481d
    alipayAppId: 2021004145642756
  xixiao:
    apiKey: api_live_8690aad5-18df-4c94-ba8c-4f9499721c65
    mockApiKey: api_test_a2944395-e6ba-4d59-969a-f629b7a9e53e
    rsaPrivateKey: MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAJ608yEkr5Fxj3ID9fIzavuwW/orgjlD1SIrmZVTwLFzM+ljnr/iFMRRhjJZZGImO+ySj296N+VPujHiiQZqymgIACdORs3YyRvxOeWQoPKiik21mOiF7RRw2GIOQEzqo0MKeJ/qdK89FvwnAIZKRXl+ccH/VTTr68VGWuiLWEK3AgMBAAECgYACsMCaZDvRtGIhJa4KsBJ1N9UnVYt8mwjG7oRJAsV2fKR5pWWwjQ2bEmK7Acbw3wMPDKD/28uMyKA4bkWyZScPO5T2Mhvo28AVOfdsbBht70iKzBAXuqHhHd99+AEmQL9ZcoCYCvoP2JqV8cHp5sXGEvncm9VRsjs3iSTsBYu0WQJBANB6x0DCPnAFXYnKvtBcBmF4jU8pO0iIGtx/ZR/N0pRTbL7cIvh+z6ZqtWo880Xbcli6i1qwZl1ctWwV0yKArOsCQQDC4dN6e8/Gj3FubXLmyLfIrbq7BuHW8kg19t0/wmAXunpkBtFhAA2FD7FYGg+/l6/f6YqWX8nSUr6pFZQI0Z5lAkARvBANIzj6gIpXeWbIBLwKOJ4UuNYxMlrOnQu2K+UY9wvOJJ3Y87ioWHV8RxkOvT856wyFt3HNyWAphKXETpvnAkEAnIjJ1ktW9FXJtfph3bABt0acg5eelYmcqQP2aT1W9BhMMMYtLi3drjCRsYOVfL55fXBYajrcoHzoOmZjtsWw5QJBAM/Wpk6L7BLVi357icleuivPtKsP04Ix5afUpgiFmssEheiLAxr+Zs5/nk/HM6V4Pk8kA0ILaNbRqjfAF5ZnAvk=
    appId: app_7848ccb2-f7e7-4841-a968-fbf02cc265ad
    wechatAppId: wx20abc5210391649c
    alipayAppId: wx20abc5210391649c # 待修改为真正的支付宝小程序id

#高德地图相关配置
aMap:
  merchantPrivateKey: MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC10OGVHfh4manoO2DE7xA8TipooKDt5WDpazYAKYKs3Rx5auWPoGEdERe1wyOQAJ34DmEULacTv2/mdjarLptL/sj3ba7XVDdAphNzrrIzLsNuzTqK9gxF5EeAAeo06H26rLrXmIvOL0KEsUuwxzuyFB0k3HZc8xM9yl3MXtv2Z0PpiYbvd32sd7HFZiM+H2ldzBZlXp2vC7ca0aj/BckIeWY/vJo5k400glTrcu8FSZbLRaMEzmJEyssVZzh2gPwvPVHoYvRIXpkiqNghyRWmKywC+h07fz21t94yhj+f/rGiK3YY3gv5S2xJ1NgmDfjmJvFMB3o00QH/GlJaiLcNAgMBAAECggEAL25ruyQTcxrbWWtMJnQbbzARHjRxZz6E1sASWV566a/RQtehRaPYUeXoopFi0KlojJLrvoDeamdxwNSsFGJXPy8brHjfuOsOcv4gavhzIqkbcOd3U1M3BnC0Om/FcsIIMs/m+mGgb0yi9Mzv6xE+wIlAxSICeuMq7N7DM5K3nYMIWhbE8kIrurMUpalH+s1FDL3FMOdRgM8L7yAjGoXZUtal6aDwTOsDkjlRmt+IuvqTjREtdBUZRLjKSU2b/3+Z42OOrkongYF74KPuQ1LmQ6Qa1D0O2b37A5ne8VbFjHai8E59Ol2PYwggajqj00G5x3KBUFJYiIhUApq6lXxywQKBgQDjgLExqhi6Op1G1Q0W5W/bKMrHshtcJawsO8C+PBxxPV9Da+5ZkguW4a1ErGCCPI0SVVW1QCTrPyrbJHyw9LteX98cnY6PGy1XVXWL+mKOK0jwL+yV299dMpk4R6u5+oO5ZX9WfoNsF3rEvfMiQxFSaH9HMR7q9GySno3NSzLW0QKBgQDMlyfqhnkDEY/rgRTo42FpX1KVf9JOP0L9+B2Q7Rec7iARuT6/qSxoV6PwNyYixyjbXx8xJQHoUDTRSgY5v543Nmh+bLOyR5NfNRqEmYpKtb0T4qB57jBMiVXcoIPXwcb7yVscAvI/rycDqEkOVgTqRdR0FW7q/svF9EuTzjNjfQKBgQDXtP7NY0U81jSno3xcuECdoQjb3WEZttKPwjwXY7FoIVPA/oYpQVNhxSrfUT3UXos31deFGoOm1ebRj7/2nKVHb0mBvVYdFByikPH6PfbSa/IlYptE4AviNwaWGUaW+ROKZtUc8qmzhHOwNZZhZwv2ggQkQUvaZNTJFDLJc0KJ8QKBgQDD/wr+YlUL24dE1iRx92Maz3cOQaX30CMdqtSoQnqcnIOcdxrmAevJCizDtBGUv7ckcbwwGIP7SttOpNvR9wBbZIQ2mWyNHoTQcM82uOEDMZgxtKqIJOegavEWq6+iwsEd9YiTDT+GQwXdOxrB4SZUSRF/JAlelzogKik9MA2LAQKBgG5cjf9V+6Ka2QjxkIV73/h5P5f08fUNAkLGiUjnH+eozsC3PGnifSwLVlfun8iHDXLwOtUK9xzGJ3yd/a8e9BBhZ8Xyd3Fqz2+q4cxorAz0UhZUnwDPUuLdEABntansYMhkrsOcXAiIQmFmMlgoHmbVHpFmWBy7VL3w2xDn1UM1
  aMapPublicKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArqmh0JZrIhk+tMbF+VE63WaqqLRs+OHZkX3HGyr4cokujgdZb0kAq4jBJa/VjWK2qDXHr2KpoY2/ppmA73oJvNPcuVxR6nwYddcASg6uFCK/vfH5PKVV0W/xKTeOIQ6NTd0wRFZs9zNo1endqgQDvn1d1Rvl1r+18MJ3BXLMjkzCUUurgeO84AIlksYV5Z46hoScyXjSc8lsmwX5r7cwHLajFXdjKo1yOCbzClMqLM29THYuegwHFcT/zp64Nd7+nawWWuPOgfkr0MTGrNCkV8ywpbyG0XVewMkdN6pTaZNvhMnLH00VkXASPB51vUjhs4WBiFZth9q3rZBkaEYSMQIDAQAB
  appId: 202306150188103814
#  apiUrl: https://restapi.amap.com/rest/openmp/devgw?key=7967738241f0a580b5a1342f43793a61
  apiUrl: https://restapi.amap.com/rest/openmp/gw?key=7967738241f0a580b5a1342f43793a61
  openId: 2089000923284502

# 远程升级服务器信息
remoteUpdate:
  server: http://apitest.jsowellcloud.com
  port: 21
  username: jsowellftpprd
  password: ADHJAYinpXEc
  uploadPath: /www/wwwroot/jsowellftpprd

# 支付宝支付参数配置
alipay:
  # 网关
  gatewayHost: https://openapi.alipay.com/gateway.do
  # 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
  appId: 2021004145642756
  # 商户私钥，您的PKCS8格式RSA2私钥
  merchantPrivateKey: MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC3mJRX1UDkQMIwVmXEyVnY0e+Q93CZHBPM3Ws0aV/9UhNMG+3UXrWdAGNOVQgNXG93vtmz1tLhsD+TaumjSW4NFB5JKBnnEcMDoDQTiBzCKTniz8hzoMhYamh38KLqxIumrwWf3+OdHiTXayvh/NA4A13DCeUS2vKctruP3ghZ5d4ipcV6ctqazCq+/BK4xaxXPG5v+BemN5jm3qnNErEWiH0Kl/p7aUw/e8/y2Gv6RJgf/fs5ad0lnDQjUVb5pnMuYREID9PjAru7i1Uh4sr3GUoa1XUIeSLw+NEBrNdYReag3t20UZOLnEEGQeh/fwJUB73hA6fhdLDJ6CLIDkDdAgMBAAECggEBAJ/wJ6qseC9fystZOKbJ0Z90o4JiTJDVSNp7OV0bPyfrTCxNWE5dg1EWeWxP3wfksqZaeESWrHc3lurRhF9fJKP4FrocWRRXANAzy6oINSVfzLGt2S4BrwZ3DDMQSpzCQ/YdGoVAAYVqMSYIkt3341wocpHqGMjoO9oRxit6fUPx4yYhT3t8d/QZ0ReFd1YfsGieUCECxx5IeurJ2ieZczHSXUJ2hXMlf+n19+uEOUydmpfIZzg0kMM2ybRqpHZHK6UANnRZhLFvOVj2jzg6p2AbH689JGQEukoiGyCKtrfElZjyVkmvoHv0xcdiuODo0RPBZwYOckJh+RHUERiMj/ECgYEA90Yh4aZaDv5A6nHx4ptg22JoTj78FUqJ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ssfYE4eZRf08kv5ocelKqi4KK7tSWtTKztbwmF6g4BAW5vWEQuqXerK8DAFyLIrvMKWB6XYoA3pYpM00Ma0J62BfO2JHeRsKxYkcDHCKuOs4EMKnvxASC8RK5pKx4/q4sYH1bW3uGpv3cfG5e9V1HmXbaS1DFQAi9LHlksswIDAQAB
  # 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
  notifyUrl: xxxx
  # AES密钥
  encryptKey: 0TOgnthQKQtoXJaSn5Bbhg==
  charset: utf-8
  signType: RSA2