server:
  port: ${PORT:9090}
  servlet:
    session:
      timeout: 60m

spring:
  application:
    name: iotdoor-boot
  devtools:
    restart:
      enabled: true
      poll-interval: 2s
      quiet-period: 500ms
    livereload:
      enabled: true
  thymeleaf:
    cache: false
  web:
    resources:
      static-locations:
        - file:src/main/resources/static/
        - classpath:/META-INF/resources/
        - classpath:/resources/
        - classpath:/static/
        - classpath:/public/
  servlet:
    multipart:
      max-file-size: ${IOTDOOR_MAX_FILE_SIZE:20MB}
      max-request-size: ${IOTDOOR_MAX_REQUEST_SIZE:100MB}
  datasource:
    # Legacy context.xml resource name: java:comp/env/jdbc/serviceDB
    url: ${IOTDOOR_DB_URL:jdbc:mariadb://localhost:3306/iotdoor2_db}
    username: ${IOTDOOR_DB_USERNAME:iotdoor_user}
    password: ${IOTDOOR_DB_PASSWORD:iotdoor_pass1!}
    driver-class-name: ${IOTDOOR_DB_DRIVER:org.mariadb.jdbc.Driver}
    hikari:
      pool-name: ${IOTDOOR_DB_POOL_NAME:IotdoorHikariPool}
      maximum-pool-size: ${IOTDOOR_DB_MAX_POOL_SIZE:20}
      minimum-idle: ${IOTDOOR_DB_MIN_IDLE:10}
      connection-test-query: SELECT 1
  sql:
    init:
      mode: always
  jackson:
    time-zone: Asia/Seoul
  mvc:
    problemdetails:
      enabled: true

management:
  endpoints:
    web:
      exposure:
        include: health,info

mybatis:
  configuration:
    map-underscore-to-camel-case: true

iotdoor:
  site:
    name: 국제오토텍
    admin-title: 국제오토텍 관리자
    email: iotdoor1749@naver.com
    phone: 042-585-1749
    phone-alt: 010-3476-1749
    address: 대전광역시 서구 유등로 55 102호
    summary: 자동문 전문 업체로 철거, 시공, A/S까지 원스톱으로 대응합니다.
    description: 슬라이딩자동문, 산업용자동문, 내풍압셔터, 오버헤드도어를 중심으로 시공과 유지보수를 제공합니다.
    map-latitude: 36.2980733
    map-longitude: 127.3814560
    map-client-id: ${IOTDOOR_NAVER_MAP_CLIENT_ID:xkb35c3i3k}
  security:
    admin-username: ${IOTDOOR_ADMIN_USERNAME:admin}
    admin-password: ${IOTDOOR_ADMIN_PASSWORD:ChangeMe123!}
    admin-display-name: ${IOTDOOR_ADMIN_DISPLAY_NAME:관리자}
  file:
    upload-path: ${IOTDOOR_FILE_UPLOAD_PATH:./uploads}
