server:
  port: 8080
  servlet:
    encoding:
      charset: UTF-8
      force: true

spring:
  application:
    name: zioinfo-web
  datasource:
    # SQLite — 파일 기반 DB (data/ 디렉토리 자동 생성)
    url: jdbc:sqlite:./data/zioinfo.db
    driver-class-name: org.sqlite.JDBC
  jpa:
    database-platform: org.hibernate.community.dialect.SQLiteDialect
    hibernate:
      ddl-auto: update    # 스키마 자동 갱신 (운영: validate)
    show-sql: false
    properties:
      hibernate:
        format_sql: true
        # SQLite는 foreign key 비활성 기본 → 명시 활성화
        javax.persistence.schema-generation.database.action: none
  mail:
    host: ${MAIL_HOST:smtp.gmail.com}
    port: ${MAIL_PORT:587}
    username: ${MAIL_USERNAME:}
    password: ${MAIL_PASSWORD:}
    properties:
      mail.smtp.auth: true
      mail.smtp.starttls.enable: true

zioinfo:
  jwt:
    secret: zioinfo-admin-jwt-secret-key-must-be-at-least-32-chars-long
    expiration-ms: 28800000   # 8시간
  company:
    name: (주)지오정보기술
    email: info@zioinfo.co.kr
    phone: 02-000-0000
    address: 서울특별시
  cors:
    allowed-origins:
      - http://localhost:3000
      - http://localhost:5173
      - http://www.zioinfo.co.kr

logging:
  level:
    kr.co.zioinfo: DEBUG
    org.hibernate.SQL: WARN
