server: port: 48080 spring: application: name: tcm-training-admin-backend profiles: active: local servlet: multipart: max-file-size: 500MB max-request-size: 520MB datasource: dynamic: primary: master strict: true datasource: master: type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://localhost:3306/tcm_training_admin?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true username: root password: root redis: host: localhost port: 6379 database: 0 timeout: 5s # password: 123456 lettuce: pool: # 连接池中的最小空闲连接 min-idle: 0 # 连接池中的最大空闲连接 max-idle: 8 # 连接池的最大数据库连接数 max-active: 8 # #连接池最大阻塞等待时间(使用负值表示没有限制) max-wait: -1ms mybatis-plus: mapper-locations: classpath*:mapper/**/*.xml configuration: map-underscore-to-camel-case: true global-config: db-config: logic-delete-field: deleted logic-delete-value: 1 logic-not-delete-value: 0 sa-token: token-name: Authorization token-prefix: Bearer timeout: 7200 active-timeout: -1 is-log: false app: upload: dir: uploads path-prefix: /uploads app-package-dir: app-package public-base-url: http://192.168.110.188:48080:${server.port} obs: access-key-id: HPUAYLGWHP56VZRHQXGC secret-access-key: Cn3dL2iEf1h5d8ZLYUEz9ggy8BhwZMgA3SZhg3Zf bucket-name: haizhengkangdao endpoint: obs.cn-south-1.myhuaweicloud.com logging: # 应用日志目录,部署到服务器后建议通过 application-local.yml 覆盖为持久化目录 path: ./logs # 日志归档保留天数 max-history: 30 # 日志归档总容量上限 total-size-cap: 3GB # 单个日志文件大小上限 max-file-size: 100MB points: # 活动到期积分结算扫描间隔(毫秒) settlement-interval-ms: 60000 auth: # APP 登录 token 有效期,默认 30 天;如需永久有效可改为 -1 token-timeout-seconds: 2592000 sms: # 短信验证码统一有效期 300 秒,即 5 分钟 expire-seconds: 300 aliyun: access-key-id: "" access-key-secret: "" sign-name: "" templates: login: "" register: "" password-reset: "" phone-change: "" # 默认关闭所有场景调试验证码,避免误入生产环境 login: enabled: false code: "" register: enabled: false code: "" password-reset: enabled: false code: "" phone-change: enabled: false code: "" wechat: # 微信开放平台 AppId,当前阶段可先留空,补齐后启用服务端换票模式 app-id: "wx074c1f0cf5a0ecf4" # 微信开放平台 AppSecret,当前阶段可先留空,补齐后启用服务端换票模式 app-secret: "7a294b47a3a2f4b69cba764b0da17dbc" # 微信用户信息接口地址 user-info-url: https://api.weixin.qq.com/sns/userinfo # 微信授权换票接口地址 access-token-url: https://api.weixin.qq.com/sns/oauth2/access_token apple: # 苹果登录 clientId,需与 iOS 包内 Sign in with Apple 配置保持一致 client-id: "com.HaiZhenKangDao.hzt" # 苹果 identity token 固定签发方 issuer: https://appleid.apple.com # 苹果 JWKS 公钥地址 jwks-url: https://appleid.apple.com/auth/keys share: # 邀请二维码默认指向 openinstall 下载页,开发环境可在 application-local.yml 覆盖。 landing-base-url: https://haizhentong.com/app-download/ # 二维码图片仍由后端公开接口生成,不能使用 openinstall 域名拼接。 qrcode-image-base-url: https://haizhentong.com/api/open/app-share/qrcode-image jpush: appKey: b5aed7d076638a0d835786bd masterSecret: e17305459be4f0011ca15c9e logging: level: root: INFO com.tcm.training.admin: INFO org.springframework.web: INFO