# GeoEdu Service Environment Configuration
# Copy this file to .env and adjust values as needed

# ===========================================
# Service Configuration
# ===========================================
PORT=8088
ENVIRONMENT=development
DEBUG=false

# ===========================================
# JWT Authentication
# ===========================================
JWT_SECRET=your-super-secret-jwt-key-change-in-production
JWT_ALGORITHM=HS256
JWT_EXPIRATION_HOURS=24

# ===========================================
# PostgreSQL (PostGIS)
# ===========================================
# Note: Database must have PostGIS extension enabled
DATABASE_URL=postgresql+asyncpg://breakpilot:breakpilot123@postgres:5432/breakpilot_db

# ===========================================
# MinIO Object Storage (S3-compatible)
# ===========================================
# Used for storing AOI bundles and generated assets
MINIO_ENDPOINT=minio:9000
MINIO_ACCESS_KEY=breakpilot
MINIO_SECRET_KEY=breakpilot123
MINIO_BUCKET=breakpilot-geo
MINIO_SECURE=false

# ===========================================
# Ollama LLM (for Learning Node Generation)
# ===========================================
# DSGVO-compliant local LLM for generating learning content
OLLAMA_BASE_URL=http://host.docker.internal:11434
OLLAMA_MODEL=qwen2.5:14b
OLLAMA_TIMEOUT=120

# ===========================================
# Data Directories (Docker Volumes)
# ===========================================
OSM_DATA_DIR=/app/data/osm
DEM_DATA_DIR=/app/data/dem
TILE_CACHE_DIR=/app/cache/tiles
BUNDLE_DIR=/app/bundles

# ===========================================
# Tile Server Configuration
# ===========================================
DEFAULT_PMTILES_FILE=germany.pmtiles
TILE_CACHE_MAX_SIZE_GB=50.0

# ===========================================
# DEM (Digital Elevation Model) Configuration
# ===========================================
# Copernicus DEM GLO-30 (30m resolution)
DEM_RESOLUTION=GLO-30
TERRAIN_TILE_SIZE=256

# ===========================================
# AOI (Area of Interest) Limits
# ===========================================
# DSGVO data minimization: limit area size
MAX_AOI_SIZE_KM2=4.0
MAX_AOI_PER_USER=10
AOI_RETENTION_DAYS=30

# ===========================================
# Learning Nodes Configuration
# ===========================================
MAX_NODES_PER_AOI=20
# Supported themes: topographie, landnutzung, orientierung, geologie, hydrologie, vegetation

# ===========================================
# CORS Configuration
# ===========================================
# Comma-separated list of allowed origins
CORS_ORIGINS=http://localhost:3000,http://localhost:3001,http://localhost:8088
