# Strict Multi-Tenant Test Configuration
# This .env file enables strict multi-tenant mode for testing

# Database Configuration (Docker containers)
POSTGRES_HOST=localhost
POSTGRES_PORT=5433
POSTGRES_USER=lightrag
POSTGRES_PASSWORD=lightrag123
POSTGRES_DATABASE=lightrag_audit

# Redis Configuration (Docker containers)
REDIS_HOST=localhost
REDIS_PORT=6380

# LightRAG API Configuration
HOST=0.0.0.0
PORT=9621
WORKING_DIR=./rag_storage
INPUT_DIR=./inputs

# Multi-Tenant Security Configuration (STRICT MODE ENABLED)
# SEC-001: Enforce tenant context on all data endpoints
LIGHTRAG_MULTI_TENANT_STRICT=true

# SEC-003: Require user authentication
LIGHTRAG_REQUIRE_USER_AUTH=true

# SEC-002: Configure super admins (comma-separated)
LIGHTRAG_SUPER_ADMIN_USERS=admin,superadmin

# Multi-Tenant Mode (demo mode allows cross-tenant testing)
MULTITENANT_MODE=demo

# LLM and Embedding Configuration (using Ollama locally)
LLM_BINDING=ollama
LLM_BINDING_HOST=http://localhost:11434
EMBEDDING_BINDING=ollama
EMBEDDING_BINDING_HOST=http://localhost:11434

# Web UI Configuration
VITE_BACKEND_URL=http://localhost:9621
VITE_API_TIMEOUT=30000

# Logging
LOG_LEVEL=INFO

# Optional: Force single worker for easier debugging
WORKERS=1
