server: port: 8080 servlet: context-path: /api spring: application: name: ryc-backend # 数据库配置 datasource: 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: hibernate: ddl-auto: none show-sql: true properties: hibernate: dialect: org.hibernate.dialect.MySQLDialect format_sql: true # GraphQL配置 graphql: path: /graphql graphiql: enabled: true path: /graphiql cors: allow-credentials: true allowed-headers: '*' allowed-methods: '*' schema: locations: - classpath*:graphql/**/ file-extensions: - .graphqls - .gqls printer: enabled: true # RabbitMQ配置 rabbitmq: host: 139.155.104.10 port: 5672 virtual-host: ryc_prod username: admin password: ycl@2020 connection-timeout: 15000 # 文件上传配置 servlet: multipart: max-file-size: 300MB max-request-size: 300MB # 腾讯云COS配置 cos: secret-id: AKIDfSG2e3Gev1xgBTaVDiz2rTr790d3FH8l secret-key: VmqgIh1B9aopcCYklbBdsthaHkeS3RbY bucket: ryc-1379367838 region: ap-chengdu # 日志配置 logging: level: com.rongyichuang: DEBUG org.springframework.security: DEBUG org.hibernate.SQL: DEBUG org.hibernate.type.descriptor.sql.BasicBinder: TRACE # 应用配置 app: base-url: https://rych.9village.cn jwt: 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