.env.exampleβ’6.03 kB
# Aerospace MCP Environment Configuration
# Copy this file to .env and adjust values for your deployment
# =============================================================================
# APPLICATION SETTINGS
# =============================================================================
# Application mode: 'http' for REST API server, 'mcp' for MCP protocol server
AEROSPACE_MODE=http
# Server configuration
AEROSPACE_MCP_HOST=0.0.0.0
AEROSPACE_MCP_PORT=8080
# Environment: development, staging, production
AEROSPACE_MCP_ENV=production
# Logging configuration
AEROSPACE_MCP_LOG_LEVEL=info
LOG_LEVEL=info
# =============================================================================
# DOCKER COMPOSE SETTINGS
# =============================================================================
# External port mapping (change if you have conflicts)
AEROSPACE_PORT=8080
# Resource limits (adjust based on your hardware)
AEROSPACE_MEMORY_LIMIT=512M
AEROSPACE_CPU_LIMIT=0.5
# Container restart policy: no, on-failure, always, unless-stopped
AEROSPACE_RESTART_POLICY=unless-stopped
# =============================================================================
# PERFORMANCE TUNING
# =============================================================================
# Default mass factor for aircraft calculations (0.0-1.0)
MASS_FACTOR=0.85
# Route calculation defaults
DEFAULT_STEP_KM=25.0
MAX_STEP_KM=100.0
MIN_STEP_KM=1.0
# OpenAP performance cache size
OPENAP_CACHE_SIZE=1000
# =============================================================================
# SECURITY SETTINGS
# =============================================================================
# CORS settings (restrict in production)
CORS_ORIGINS=*
CORS_METHODS=GET,POST,OPTIONS
CORS_HEADERS=Content-Type,Authorization
# Rate limiting (if implemented)
RATE_LIMIT_PER_MINUTE=60
RATE_LIMIT_BURST=10
# =============================================================================
# HOME NETWORK CONFIGURATION
# =============================================================================
# Network subnet for Docker Compose (change if conflicts with your network)
AEROSPACE_SUBNET=172.20.0.0/16
# DNS configuration (optional - for custom domain resolution)
# AEROSPACE_DOMAIN=aerospace-mcp.local
# AEROSPACE_EXTERNAL_URL=https://aerospace-mcp.yourdomain.com
# =============================================================================
# REVERSE PROXY INTEGRATION
# =============================================================================
# Traefik labels (uncomment if using Traefik)
# TRAEFIK_ENABLE=true
# TRAEFIK_ROUTER_RULE=Host(`aerospace-mcp.local`)
# TRAEFIK_ROUTER_ENTRYPOINTS=web,websecure
# TRAEFIK_ROUTER_TLS_CERTRESOLVER=letsencrypt
# Nginx Proxy Manager integration
# NGINX_VIRTUAL_HOST=aerospace-mcp.local
# NGINX_VIRTUAL_PORT=8080
# =============================================================================
# MONITORING AND OBSERVABILITY
# =============================================================================
# Health check configuration
HEALTH_CHECK_INTERVAL=30s
HEALTH_CHECK_TIMEOUT=10s
HEALTH_CHECK_RETRIES=3
# Metrics and monitoring (future features)
# ENABLE_METRICS=false
# METRICS_PORT=9090
# PROMETHEUS_ENABLED=false
# =============================================================================
# BACKUP AND PERSISTENCE
# =============================================================================
# Volume mount paths (uncomment to enable persistent storage)
# AEROSPACE_LOGS_PATH=./logs
# AEROSPACE_DATA_PATH=./data
# AEROSPACE_CONFIG_PATH=./config
# Backup configuration (for future backup scripts)
# BACKUP_ENABLED=false
# BACKUP_SCHEDULE=0 2 * * * # Daily at 2 AM
# BACKUP_RETENTION_DAYS=30
# =============================================================================
# DEVELOPMENT SETTINGS
# =============================================================================
# Development mode (enables hot reload, detailed logging)
# AEROSPACE_MCP_ENV=development
# Debug settings
# DEBUG=false
# VERBOSE_LOGGING=false
# Test database/API endpoints
# TEST_MODE=false
# =============================================================================
# AI AGENT TOOLS CONFIGURATION
# =============================================================================
# Enable/disable LLM-powered agent tools (format_data_for_tool, select_aerospace_tool)
# Set to "true" to enable, "false" to disable, or omit to disable by default
LLM_TOOLS_ENABLED=false
# OpenAI API key for LLM-powered agent tools
# Required only when LLM_TOOLS_ENABLED=true
# Get your API key from: https://platform.openai.com/api-keys
# OPENAI_API_KEY=your_openai_api_key_here
# LiteLLM configuration (optional)
# Model to use for agent tools (default: gpt-5-medium)
# LITELLM_MODEL=gpt-5-medium
# LiteLLM logging level (optional)
# LITELLM_LOG_LEVEL=ERROR
# =============================================================================
# EXTERNAL SERVICES (Future Features)
# =============================================================================
# Weather API integration (placeholder for future features)
# WEATHER_API_KEY=your_weather_api_key_here
# WEATHER_API_PROVIDER=openweathermap
# Database configuration (if adding persistence)
# DATABASE_URL=sqlite:///./aerospace_mcp.db
# DATABASE_MAX_CONNECTIONS=10
# Redis cache (for performance optimization)
# REDIS_URL=redis://localhost:6379/0
# CACHE_TTL=3600
# =============================================================================
# KUBERNETES SPECIFIC (when deploying to k8s)
# =============================================================================
# Namespace
# K8S_NAMESPACE=default
# Ingress configuration
# K8S_INGRESS_HOST=aerospace-mcp.local
# K8S_INGRESS_CLASS=nginx
# K8S_TLS_SECRET_NAME=aerospace-mcp-tls
# Resource requests and limits
# K8S_MEMORY_REQUEST=256Mi
# K8S_MEMORY_LIMIT=512Mi
# K8S_CPU_REQUEST=250m
# K8S_CPU_LIMIT=500m
# Autoscaling
# K8S_MIN_REPLICAS=1
# K8S_MAX_REPLICAS=5
# K8S_TARGET_CPU=70
# K8S_TARGET_MEMORY=80