Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 84 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# ============================================================
# Ragamuffin Platform Environment Variables
# ============================================================
# This is a DEVELOPMENT configuration template.
# For staging/production, use .env.staging.example or create .env.production
# ============================================================

# ----------------------
# ENVIRONMENT
# ----------------------
ENVIRONMENT=development
LOG_LEVEL=DEBUG

# ----------------------
# JWT AUTHENTICATION
# ----------------------
# Generate a secure secret: openssl rand -hex 32
JWT_SECRET_KEY=dev-secret-change-in-production
JWT_ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
REFRESH_TOKEN_EXPIRE_DAYS=7

# ----------------------
# CORS CONFIGURATION
# ----------------------
CORS_ORIGINS=http://localhost:8080,http://localhost:3000,http://localhost:5173

# ----------------------
# RATE LIMITING
# ----------------------
RATE_LIMIT_PER_MINUTE=100

# ----------------------
# OPENAI (Optional)
# ----------------------
# For advanced embeddings and LLM features
# Get your API key from: https://platform.openai.com/api-keys
OPENAI_API_KEY=

# ----------------------
# MILVUS CONFIGURATION
# ----------------------
MILVUS_HOST=milvus
MILVUS_PORT=19530

# ----------------------
# RAG SERVICE
# ----------------------
EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2
RAG_SERVICE_URL=http://rag-service:8001

# ----------------------
# n8n WORKFLOW AUTOMATION
# ----------------------
# IMPORTANT: Change these in staging/production!
N8N_BASIC_AUTH_USER=admin
N8N_BASIC_AUTH_PASSWORD=admin

# ----------------------
# MINIO OBJECT STORAGE
# ----------------------
# IMPORTANT: Change these in staging/production!
MINIO_ROOT_USER=minioadmin
MINIO_ROOT_PASSWORD=minioadmin

# ----------------------
# RETELL.AI VOICE AI
# ----------------------
# Get your API key from: https://www.retell.ai/
# Documentation: https://docs.retell.ai/
RETELL_API_KEY=
# Webhook secret for verifying Retell callbacks (optional but recommended)
RETELL_WEBHOOK_SECRET=

# ----------------------
# SERVICE PORTS
# ----------------------
FRONTEND_PORT=8080
BACKEND_PORT=8000
RAG_SERVICE_PORT=8001
LANGFLOW_PORT=7860
N8N_PORT=5678
MINIO_PORT=9000
MINIO_CONSOLE_PORT=9001
115 changes: 115 additions & 0 deletions .env.staging.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
# ============================================================
# Ragamuffin Platform - Staging Environment Configuration
# ============================================================
# IMPORTANT: Copy this file to .env.staging and update all values
# before deploying to staging environment.
#
# Generate secrets with: openssl rand -hex 32
# ============================================================

# ----------------------
# ENVIRONMENT
# ----------------------
ENVIRONMENT=staging
LOG_LEVEL=INFO

# ----------------------
# JWT AUTHENTICATION
# ----------------------
# CRITICAL: Generate a new secret for staging: openssl rand -hex 32
JWT_SECRET_KEY=YOUR_STAGING_JWT_SECRET_CHANGE_ME
JWT_ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
REFRESH_TOKEN_EXPIRE_DAYS=7

# ----------------------
# CORS CONFIGURATION
# ----------------------
# Comma-separated list of allowed origins
CORS_ORIGINS=http://localhost:8080,http://staging.yourdomain.com,https://staging.yourdomain.com

# ----------------------
# RATE LIMITING
# ----------------------
RATE_LIMIT_PER_MINUTE=100

# ----------------------
# MILVUS CONFIGURATION
# ----------------------
MILVUS_HOST=milvus
MILVUS_PORT=19530
MILVUS_METRICS_PORT=9091

# ----------------------
# RAG SERVICE
# ----------------------
RAG_SERVICE_PORT=8001
EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2
RAG_SERVICE_URL=http://rag-service:8001

# ----------------------
# OPENAI (Optional)
# ----------------------
# For advanced embeddings and LLM features
# Get API key from: https://platform.openai.com/api-keys
OPENAI_API_KEY=

# ----------------------
# n8n WORKFLOW AUTOMATION
# ----------------------
# IMPORTANT: Change these default credentials!
N8N_PORT=5678
N8N_BASIC_AUTH_USER=stagingadmin
N8N_BASIC_AUTH_PASSWORD=YOUR_STAGING_N8N_PASSWORD_CHANGE_ME
N8N_PROTOCOL=http
N8N_WEBHOOK_URL=http://staging.yourdomain.com:5678/
# Generate encryption key: openssl rand -hex 32
N8N_ENCRYPTION_KEY=YOUR_N8N_ENCRYPTION_KEY

# ----------------------
# MINIO OBJECT STORAGE
# ----------------------
# IMPORTANT: Change these default credentials!
MINIO_PORT=9000
MINIO_CONSOLE_PORT=9001
MINIO_ROOT_USER=stagingadmin
MINIO_ROOT_PASSWORD=YOUR_STAGING_MINIO_PASSWORD_CHANGE_ME

# ----------------------
# LANGFLOW
# ----------------------
LANGFLOW_PORT=7860

# ----------------------
# BACKEND API
# ----------------------
BACKEND_PORT=8000

# ----------------------
# FRONTEND
# ----------------------
FRONTEND_PORT=8080
VITE_API_URL=http://staging.yourdomain.com:8000
VITE_RAG_API_URL=http://staging.yourdomain.com:8001

# ----------------------
# DATABASE (Future Use)
# ----------------------
# For production, use PostgreSQL instead of in-memory
# DATABASE_URL=postgresql://user:password@db-host:5432/ragamuffin_staging
# REDIS_URL=redis://:password@redis-host:6379/0

# ----------------------
# MONITORING (Optional)
# ----------------------
# PROMETHEUS_ENABLED=true
# GRAFANA_ENABLED=true
# SENTRY_DSN=

# ----------------------
# EMAIL NOTIFICATIONS (Optional)
# ----------------------
# SMTP_HOST=smtp.gmail.com
# SMTP_PORT=587
# SMTP_USER=
# SMTP_PASSWORD=
Loading