| | |
| | | |
| | | # 数据库配置 |
| | | datasource: |
| | | url: jdbc:mysql://139.155.104.10:3306/ryc?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai |
| | | url: jdbc:mysql://139.155.104.10:3306/ryc?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&connectTimeout=60000&socketTimeout=60000&autoReconnect=true |
| | | username: ryc |
| | | password: KiYap3E8X8RLcM6T |
| | | driver-class-name: com.mysql.cj.jdbc.Driver |
| | | hikari: |
| | | connection-timeout: 60000 |
| | | idle-timeout: 300000 |
| | | max-lifetime: 1800000 |
| | | maximum-pool-size: 10 |
| | | minimum-idle: 5 |
| | | validation-timeout: 5000 |
| | | leak-detection-threshold: 60000 |
| | | |
| | | # JPA配置 |
| | | jpa: |
| | |
| | | # 文件上传配置 |
| | | servlet: |
| | | multipart: |
| | | max-file-size: 50MB |
| | | max-request-size: 50MB |
| | | max-file-size: 300MB |
| | | max-request-size: 300MB |
| | | |
| | | # 腾讯云COS配置 |
| | | cos: |
| | |
| | | secret: ryc-jwt-secret-key-2024-secure-256bit-hmac-sha-algorithm-compatible |
| | | expiration: 86400000 # 24小时 |
| | | media-url: https://ryc-1379367838.cos.ap-chengdu.myqcloud.com |
| | | |
| | | # 微信小程序配置 |
| | | wechat: |
| | | miniprogram: |
| | | app-id: wxaa13026a14b1d784 # 小程序AppID |
| | | app-secret: b7a7acc1063a83b9cd3173fb08919f84 # 需要配置环境变量WECHAT_APP_SECRET |
| | | api: |
| | | code2session: https://api.weixin.qq.com/sns/jscode2session |
| | | get-phone-number: https://api.weixin.qq.com/wxa/business/getuserphonenumber |