#用户中心
server:
  port: 8012
  servlet:
    context-path: /api

#swagger2配置
swagger2:
  enable: true #开启标志 生产环境要关闭
  projectName: 云平台-用户中心-接口
  controllerPath: com.ho.user.controller

spring:
  jackson:
    time-zone: GMT+8
  application:
    name: user-center
  cloud:
    nacos:
      discovery:
        server-addr: 192.168.0.142:8848
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://192.168.0.236:3306/user_center_db?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
    username: user_center_db
    password: zzkj@688737
    druid:
      initialSize: 5
      minIdle: 5
      maxActive: 5
      keepAlive: true #保持长连接
      connection-error-retry-attempts: 3
  boot:
    admin:
      client:
        url: http://localhost:8019/boot
  #Redis
  redis:
    port: 6379 #端口
    timeout: 3000ms #连接超时
    host: 192.168.0.236 #单机
    password: zzkj@688737
    database: 0
    lettuce:
      pool:
        max-active: 8 #连接池最大连接  默认8
        max-idle: 8 #连接池中最大空闲连接 默认8
        min-idle: 1 #连接池中最小空闲连接 默认0
        max-wait: 2000ms #连接池最大阻塞等待时间 使用负值表示没有限制

#jwt配置
jwt:
  secretKey: 78944878877848fg)
  accessTokenExpireTime: PT2H
  refreshTokenExpireTime: PT8H
  refreshTokenExpireAppTime: P30D
  issuer: hocloudSystem

#加解密
rsa:
  pubKey: 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCuG6ZABNgLQCI9iVPDuJEb7xb5zR9UGKyKXshLuJFZxyNtaEzfpjSMqsshUYA1QpwUvkmZE0lcRE4F4QtZO9rDnH2PoW1FWRbjgg0+MKWOmZr9hSPKM/BIE+knTtTaj4/0TK7QwDd9q/QAIduC1hIyxIIkxfWx0gFuTnxui0waCwIDAQAB'
  privateKey: 'MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAK4bpkAE2AtAIj2JU8O4kRvvFvnNH1QYrIpeyEu4kVnHI21oTN+mNIyqyyFRgDVCnBS+SZkTSVxETgXh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