server:
  http2:
    enabled: true
  forward-headers-strategy: framework
spring:
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: ${MYSQL_URL}
    username: ${MYSQL_USERNAME}
    password: ${MYSQL_PASSWORD}
  data:
    rest:
      base-path: /api/manage
      detection-strategy: annotated
  jpa:
    hibernate:
      naming:
        physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
    show-sql: on
management:
  health:
    livenessstate:
      enabled: true
    readinessstate:
      enabled: true
  endpoints:
    web:
      base-path: /actuator
      exposure:
        include: '*'
  endpoint:
    health:
      probes:
        enabled: on
springdoc:
  version: '@project.version@'
  api-docs:
    path: '/devapi/api-docs'
    groups:
      enabled: true
  swagger-ui:
    display-request-duration: true
    groups-order: DESC
    operationsSorter: method
    disable-swagger-default-url: true
    use-root-path: true
    path: '/devapi/swagger-ui.html'
    doc-expansion: none
  show-actuator: true
  default-produces-media-type: 'application/json'
sso:
  ssid-name: ${SSO_SSID_NAME}
  api-host: ${SSO_API_HOST}
  api-token: ${SSO_API_TOKEN}
alibaba:
  cloud:
    oss:
      endpoint: "oss-cn-beijing.aliyuncs.com"
      config:
        protocol: 'https'
    access-key: ${ALI_CLOUD_ACCESS_KEY}
    secret-key: ${ALI_CLOUD_SECRET_KEY}
blog:
  base-url: ${BLOG_BASE_URL:"https://tidb.net/blog"}
  award:
    awardPostCron: ${POST_AWARD_CRON:-}
  processPostTextCron: ${POST_TEXT_PROCESS_CRON:-}
  calcPostScoreCron: ${POST_CALC_SCORE_CRON:-}
  repostCron: ${POST_REPOST_CRON:-}
  oss:
    allow-file-type:
      - ".jpg"
      - ".png"
      - ".jpeg"
      - ".gif"
      - ".webp"
    allow-content-type:
      "[image/png]": ".png"
      "[image/apng]": ".apng"
      "[image/jpeg]": ".jpg"
      "[image/gif]": ".gif"
      "[image/webp]": ".webp"
      "[image/bmp]": ".bmp"
    directory: media
  third:
    infoq:
      app-id: ${INFOQ_APP_ID}
      app-secret: ${INFOQ_APP_SECRET}
  access-token:
    salt: ${ENCODE_ACCESS_TOKEN_SALT}
  webhook:
    application-name: TiDB-Blog
  notice:
    default_informer_user_id: 1
    lark-notice-webhook-url: ${LARK_NOTICE_WEBHOOK_URL}
  cors-allowed-origins:
    - 'http://localhost:3000'
    - 'https://localhost:3000'