server: port: 8080 spring: application: name: par-server datasource: url: jdbc:mysql://${MYSQL_HOST:localhost}:${MYSQL_PORT:3306}/${MYSQL_DB:par_registry}?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true username: ${MYSQL_USER:root} password: ${MYSQL_PASSWORD:root} driver-class-name: com.mysql.cj.jdbc.Driver hikari: minimum-idle: 5 maximum-pool-size: 20 connection-timeout: 30000 idle-timeout: 600000 max-lifetime: 1800000 connection-init-sql: SET SESSION lock_wait_timeout=10 jackson: date-format: yyyy-MM-dd HH:mm:ss time-zone: Asia/Shanghai default-property-inclusion: non_null web: resources: static-locations: file:${PAR_STATIC_PATH:./static/},classpath:/static/ flyway: enabled: true locations: classpath:db/migration baseline-on-migrate: true baseline-version: 0 validate-on-migrate: false mybatis-plus: configuration: map-underscore-to-camel-case: true log-impl: org.apache.ibatis.logging.stdout.StdOutImpl global-config: db-config: id-type: auto logic-delete-field: deleted logic-delete-value: 1 logic-not-delete-value: 0 par: static: path: ${PAR_STATIC_PATH:./static/configs/} mediabot: psk: ${PAR_MEDIABOT_PSK:} admin: path: ${PAR_ADMIN_PATH:./static/admin/} auth: api-key-prefix: mbt_ hmac-window-seconds: 60 password-bcrypt-strength: 10 security: verification-code-expire-minutes: 10 login-max-failures: 5 login-lock-minutes: 30 # HMAC 签名密钥(生产环境必须配置随机密钥) hmac: secret: ${HMAC_SECRET:} logging: level: com.par: DEBUG pattern: console: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n"