# Shodh Memory - Environment Configuration Example
# Copy this to .env and fill in your values

# =============================================================================
# AUTHENTICATION (Required)
# =============================================================================

# Production: Set your API keys (comma-separated for multiple)
# SHODH_API_KEYS=sk-your-secure-key-1,sk-your-secure-key-2

# Development: Set a dev key (only if SHODH_API_KEYS not set)
SHODH_DEV_API_KEY=sk-shodh-dev-change-me

# Client API Key: Must match one of the server's accepted keys
# Used by Python client, MCP server, and REST API calls
SHODH_API_KEY=sk-shodh-dev-change-me

# =============================================================================
# SERVER CONFIGURATION
# =============================================================================

# Environment: "production" or "development" (default: development)
# SHODH_ENV=production

# Server bind address (default: 127.0.0.1)
# Use 0.0.0.0 for Docker or network-accessible deployments
# SHODH_HOST=0.0.0.0

# Server port (default: 3030)
SHODH_PORT=3030

# Storage directory (default: ./shodh_memory_data)
SHODH_MEMORY_PATH=./shodh_memory_data

# Rate limiting
# SHODH_RATE_LIMIT=4000
# SHODH_RATE_BURST=8000
# SHODH_MAX_CONCURRENT=200

# =============================================================================
# INTEGRATIONS (Optional)
# =============================================================================

# Linear Integration
# LINEAR_API_URL=https://api.linear.app/graphql
# LINEAR_WEBHOOK_SECRET=your-linear-webhook-signing-secret

# GitHub Integration
# GITHUB_API_URL=https://api.github.com
# GITHUB_WEBHOOK_SECRET=your-github-webhook-secret

# =============================================================================
# CORS (Optional - defaults to allow all in development)
# =============================================================================

# SHODH_CORS_ORIGINS=https://your-frontend.com,https://another-allowed-origin.com
# SHODH_CORS_CREDENTIALS=false

# =============================================================================
# LOGGING
# =============================================================================

RUST_LOG=info
