server:
  port: 8011
spring:
  application:
    name: guardia-mall
  datasource:
    url: ${DB_URL:jdbc:postgresql://localhost:5432/mall_db}
    username: ${DB_USER:mall_user}
    password: ${DB_PASS:mall_pass2026}
    driver-class-name: org.postgresql.Driver
  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/mall/docs
  swagger-ui:
    path: /api/mall/swagger
mall:
  # 외부 게이트웨이 어댑터 선택 — 기본 mock(개발/데모 외부호출 0). 운영 시 환경변수로 오버라이드.
  payment:
    provider: ${MALL_PAYMENT_PROVIDER:mock}    # mock | stripe
  tax:
    provider: ${MALL_TAX_PROVIDER:mock}        # mock | taxjar | avalara
  address:
    provider: ${MALL_ADDRESS_PROVIDER:mock}    # mock | google | smarty
  sms:
    provider: ${MALL_SMS_PROVIDER:mock}        # mock | twilio
  email:
    provider: ${MALL_EMAIL_PROVIDER:mock}      # mock | sendgrid
guardia:
  itsm-url: ${ITSM_URL:http://localhost:9001}
  erp-url: ${ERP_URL:http://localhost:8003}
  crm-url: ${CRM_URL:http://localhost:8004}
  ocr-url: ${OCR_URL:http://localhost:8005}
  ollama-url: ${OLLAMA_URL:http://localhost:11434}
  ollama-text-model: ${OLLAMA_TEXT_MODEL:llama3}
  crypto:
    secret: ${CRYPTO_SECRET:guardia-mall-aes-256-gcm-master-key-2026-zioinfo}
  jwt:
    secret: ${JWT_SECRET:guardia-mall-jwt-secret-2026-minimum-256bit-key-zioinfo}
    expiration: 86400000
logging:
  level:
    com.zioinfo.mall: DEBUG
    org.mybatis: WARN
