server:
  port: 8012

spring:
  application:
    name: guardia-cms
  datasource:
    url: ${DB_URL:jdbc:postgresql://localhost:5432/cms_db}
    username: ${DB_USER:cms_user}
    password: ${DB_PASS:cms_pass2026}
    driver-class-name: org.postgresql.Driver
  sql:
    init:
      mode: ${SQL_INIT_MODE:never}
      schema-locations: classpath:db/schema.sql
  servlet:
    multipart:
      max-file-size: 20MB
      max-request-size: 20MB

mybatis:
  mapper-locations: classpath:mapper/**/*.xml
  configuration:
    map-underscore-to-camel-case: true
    log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl

springdoc:
  api-docs:
    path: /api/cms/docs
  swagger-ui:
    path: /api/cms/swagger

guardia:
  itsm-url: ${ITSM_URL:http://localhost:9001}
  mall-url: ${MALL_URL:http://localhost:8011}
  crm-url: ${CRM_URL:http://localhost:8004}
  ocr-url: ${OCR_URL:http://localhost:8005}
  bi-url: ${BI_URL:http://localhost:8006}
  # 보안 불변 규칙: Ollama 온프레미스만 허용. 외부 AI API 절대 금지.
  ollama-url: ${OLLAMA_URL:http://localhost:11434}
  ollama-text-model: ${OLLAMA_TEXT_MODEL:llama3}
  ollama-vision-model: ${OLLAMA_VISION_MODEL:llava}
  crypto:
    secret: ${CMS_CRYPTO_SECRET:guardia-cms-aes-256-gcm-master-key-2026-zioinfo}
  jwt:
    secret: ${JWT_SECRET:guardia-cms-jwt-secret-2026-minimum-256bit-key-zioinfo}
    expiration: 86400000

logging:
  level:
    com.zioinfo.cms: DEBUG
    org.mybatis: WARN
