# Server Configuration
server.port=8080

# Application Name
spring.application.name=cf-deployer

# Multipart Configuration - for traditional single upload endpoint
spring.servlet.multipart.max-file-size=10MB
spring.servlet.multipart.max-request-size=10MB
spring.servlet.multipart.enabled=true
# Write all uploads directly to disk, not memory (prevents OutOfMemoryError)
spring.servlet.multipart.file-size-threshold=0

# Cloud Foundry CLI Configuration
cf.cli.timeout=600
cf.cli.path=

# Chunked Upload Configuration
# Session timeout in minutes (default: 30 minutes)
cf.upload.session.timeout-minutes=30
# Note: Chunk size is controlled by the client, not the server.
# Server accepts any chunk size and appends chunks sequentially.

# Logging Configuration
logging.level.root=INFO
logging.level.com.cfdeployer=DEBUG
logging.pattern.console=%d{yyyy-MM-dd HH:mm:ss} - %msg%n
logging.pattern.file=%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n
