# ===== 운영 환경 =====
spring:
  datasource:
    driver-class-name: org.mariadb.jdbc.Driver
    url: jdbc:mariadb://172.16.10.125:3306/db_owrainfo?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Seoul
    username: owrainfo
    password: owra5313

  thymeleaf:
    cache: true   # 운영에서는 캐시 활성화

mybatis:
  configuration:
    log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl   # SQL 로그 비활성화

server:
  port: 8080

logging:
  level:
    com.owrawww: WARN
    org.springframework.security: WARN
  file:
    name: /home/www/owrainfo/logs/owrawww.log
  logback:
    rollingpolicy:
      max-file-size: 10MB
      max-history: 30
      file-name-pattern: /home/www/owrainfo/logs/owrawww.%d{yyyy-MM-dd}.%i.log

app:    
  upload:
    path: /home/www/owrainfo/uploads
  encryption:
    key: PIYAsB81yr7uETVoM/E7Sz9Sp5kNB46uHyjnfQE3XOs=  # 운영 전용 키로 교체 필요 (base64 인코딩된 32바이트)
  hash:
    salt: ${APP_HASH_SALT:9C4622A0E11849F94C490FCE1E6114F05BFF98FCEB5B85067F09E35ADD0D3FAB}  # 반드시 환경변수로 주입 (서버에서 설정)