# SLM Framework API - Environment Variables
# Copiar este archivo como .env y ajustar los valores según necesidades

# Node Environment
NODE_ENV=development

# Server Configuration
API_PORT=3000

# Elasticsearch Configuration
ES_SERVER=http://elasticsearch:9200
DEV_ES_INDEX=slm-app-dev

# API Security
API_KEY_DEV=dev-key-12345
API_KEY_TEST=test-key-67890

# Rate Limiting
RATE_LIMIT_ENABLED=true
RATE_LIMIT_MAX=100
RATE_LIMIT_WINDOW=60

# Timezone
TZ=America/Mexico_City

# Memory Monitoring
MEMORY_ALERT_THRESHOLD=0.80
MEMORY_CRITICAL_THRESHOLD=0.90
MEMORY_MONITOR_INTERVAL=300000
MEMORY_EMAIL_ALERTS=true
MEMORY_ALERT_EMAIL=admin@slm-framework.local
MEMORY_LEAK_SLOPE=2

# Email Notifications (Nodemailer)
NOTIFICATIONS_EMAIL_ENABLED=true
SMTP_HOST=mailhog
SMTP_PORT=1025
SMTP_SECURE=false
SMTP_USER=
SMTP_PASS=
SMTP_FROM=noreply@slm-framework.local
SMTP_FROM_NAME="SLM Framework API"

# Slack Notifications (Futuro)
NOTIFICATIONS_SLACK_ENABLED=false
SLACK_WEBHOOK_URL=
SLACK_CHANNEL=#alerts
SLACK_USERNAME="SLM Framework Bot"
SLACK_ICON_EMOJI=:robot_face:

# WhatsApp Notifications (Futuro)
NOTIFICATIONS_WHATSAPP_ENABLED=false
WHATSAPP_API_URL=
WHATSAPP_API_KEY=
WHATSAPP_PHONE=

# Notification Settings
NOTIFICATIONS_DEFAULT_CHANNEL=email
NOTIFICATIONS_RETRY_ATTEMPTS=3
NOTIFICATIONS_RETRY_DELAY=5000
SYSTEM_ERROR_EMAIL=admin@slm-framework.local
SERVICE_NOTIFICATION_EMAIL=admin@slm-framework.local
