server:
  port: ${SERVER_PORT:8082}

spring:
  application:
    name: mysub-service
  datasource:
    url: jdbc:postgresql://${POSTGRES_HOST:localhost}:${POSTGRES_PORT:5432}/${POSTGRES_DB:mysub}
    username: ${POSTGRES_USER:admin}
    password: ${POSTGRES_PASSWORD:Passw0rd}
    driver-class-name: org.postgresql.Driver
  # JPA 설정
  jpa:
    hibernate:
      ddl-auto: ${JPA_DDL_AUTO:update}
    show-sql: ${JPA_SHOW_SQL:true}
    properties:
      hibernate:
        format_sql: true
        dialect: org.hibernate.dialect.PostgreSQLDialect

# Secret key 만들기: openssl rand -base64 32
jwt:
  secret-key: ${JWT_SECRET_KEY:8O2HQ13etL2BWZvYOiWsJ5uWFoLi6NBUG8divYVoCgtHVvlk3dqRksMl16toztDUeBTSIuOOPvHIrYq11G2BwQ}

allowed-origins: ${ALLOWED_ORIGINS:http://localhost:3000}

# 총구독료에 따른 구독서비스 사용 레벨 기준 금액
fee:
  level:
    collector: ${FEE_LEVEL_COLLECTOR:50000}
    addict: ${FEE_LEVEL_ADDICT:100000}

springdoc:
  swagger-ui:
    path: /swagger-ui.html

logging:
  level:
    com.unicorn: DEBUG
    org.hibernate.SQL: TRACE
