.env.example•3.25 kB
# ============================================================================
# Hypotheek MCP Server v4.0 - Environment Configuration (Fase 1)
# ============================================================================
# ----------------------------------------------------------------------------
# REQUIRED: Replit API Configuration
# ----------------------------------------------------------------------------
# API key voor Replit backend (VERPLICHT)
# Verkrijg via: https://replit.com/@youruser/digital-mortgage-calculator
REPLIT_API_KEY=sk_test_your_key_here
# Base URL voor Replit API (optioneel, heeft default)
# Default: https://digital-mortgage-calculator.replit.app
# REPLIT_API_URL_BASE=https://digital-mortgage-calculator.replit.app
# ----------------------------------------------------------------------------
# LOGGING & OBSERVABILITY (Fase 1)
# ----------------------------------------------------------------------------
# Log level: debug | info | warn | error
# Default: info
# Development: debug (voor gedetailleerde logs)
# Production: warn (alleen warnings en errors)
LOG_LEVEL=info
# Node environment
# development = verbose logging, stack traces
# production = minimal logging, no stack traces
NODE_ENV=development
# ----------------------------------------------------------------------------
# API CLIENT CONFIGURATION (Fase 2 - maar alvast configureerbaar)
# ----------------------------------------------------------------------------
# API request timeout in milliseconds
# Default: 30000 (30 seconden)
# Min: 5000, Max: 60000
API_TIMEOUT_MS=30000
# Enable exponential backoff retry logic
# true = retry failed requests (recommended)
# false = fail immediately
# Default: true
ENABLE_RETRY=true
# Maximum number of retry attempts
# Default: 3
# Range: 0-5
MAX_RETRIES=3
# ----------------------------------------------------------------------------
# RATE LIMITING (Fase 2 - maar alvast configureerbaar)
# ----------------------------------------------------------------------------
# Maximum requests per minute per session
# Default: 100
RATE_LIMIT_PER_SESSION=100
# ============================================================================
# USAGE NOTES
# ============================================================================
# 1. SETUP:
# cp .env.example .env
# nano .env # of je favoriete editor
# 2. Vul REPLIT_API_KEY in (VERPLICHT!)
# 3. Pas andere settings aan indien gewenst (optioneel)
# 4. SECURITY:
# - .env is in .gitignore - commit NOOIT je .env file!
# - Voor productie: gebruik secrets manager (AWS Secrets Manager, Vault)
# 5. TESTING:
# npm run build
# npm start
# # Je ziet: "Hypotheek MCP Server v4.0 draait..."
# ============================================================================
# FASE 1 WIJZIGINGEN (v4.0.0)
# ============================================================================
# Nieuw in Fase 1:
# - LOG_LEVEL: Configureerbaar log level
# - Structured logging met Winston
# - Validatie warnings (non-blocking)
# - Type safety met strict mode
# Komend in Fase 2:
# - Retry logic actief
# - Rate limiting actief
# - Error codes in responses
# ============================================================================