# =============================================================================
# Cannamanage — Production Profile
# =============================================================================
# Activated via: SPRING_PROFILES_ACTIVE=production
# =============================================================================

# Database
spring.datasource.url=${SPRING_DATASOURCE_URL}
spring.datasource.username=${SPRING_DATASOURCE_USERNAME}
spring.datasource.password=${SPRING_DATASOURCE_PASSWORD}
spring.datasource.hikari.maximum-pool-size=10
spring.datasource.hikari.minimum-idle=2

# JPA
spring.jpa.hibernate.ddl-auto=validate
spring.jpa.show-sql=false

# Flyway
spring.flyway.enabled=true

# JWT Security
cannamanage.security.jwt.secret=${CANNAMANAGE_SECURITY_JWT_SECRET}
cannamanage.security.jwt.access-token-expiry=3600
cannamanage.security.jwt.refresh-token-expiry=2592000

# Stripe
stripe.secret-key=${STRIPE_SECRET_KEY}
stripe.webhook-secret=${STRIPE_WEBHOOK_SECRET}
stripe.starter-price-id=${STRIPE_STARTER_PRICE_ID}
stripe.pro-price-id=${STRIPE_PRO_PRICE_ID}

# App
app.base-url=${APP_BASE_URL:https://app.cannamanage.de}

# Error handling — never expose internals
server.error.include-message=never
server.error.include-stacktrace=never
server.error.include-binding-errors=never

# Actuator — health only, no sensitive details
management.endpoints.web.exposure.include=health
management.endpoint.health.show-details=never

# Logging — production levels
logging.level.root=WARN
logging.level.de.cannamanage=INFO
logging.level.org.springframework.security=WARN
logging.level.org.hibernate.SQL=OFF

# Disable Swagger in production
springdoc.api-docs.enabled=false
springdoc.swagger-ui.enabled=false

# App base URL
app.base-url=https://cannamanage.plate-software.de
