spring:
  application:
    name: aioj-blog-service
  profiles:
    active: @env@
  servlet:
    multipart:
      max-file-size: 10MB
      max-request-size: 10MB

server:
  port: 18086
  servlet:
    context-path: /api
  error:
    include-stacktrace: never

springdoc:
  api-docs:
    enabled: true
    path: /v3/api-docs
  default-flat-param-object: true
  swagger-ui:
    path: /swagger-ui.html
    tags-sorter: alpha
    operations-sorter: alpha
  group-configs:
    - group: 'default'
      paths-to-match: '/api/**'
      packages-to-scan: cn.meowrain.aioj.backend.blogservice.controller

knife4j:
  basic:
    enable: true
  setting:
    language: zh_cn

mybatis-plus:
  configuration:
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  mapper-locations: classpath*:/mapper/**/*.xml

# JWT 配置（必须与 auth-service 保持一致）
jwt:
  enabled: true
  secret: "12345678901234567890123456789012"  # 至少32字节
  access-expire: 900000           # 15分钟
  refresh-expire: 604800000       # 7天

aioj:
  log:
    enabled: true
    max-length: 20000

logging:
  file:
    path: ./logs/${spring.application.name}
