Files
Munich-news/backend/env.template
2025-11-11 14:09:21 +01:00

42 lines
1.6 KiB
Plaintext

# MongoDB Configuration
# For Docker Compose (no authentication):
MONGODB_URI=mongodb://localhost:27017/
# For Docker Compose with authentication:
# MONGODB_URI=mongodb://admin:password@localhost:27017/
# For MongoDB Atlas (cloud):
# MONGODB_URI=mongodb+srv://username:password@cluster.mongodb.net/
# Email Configuration (for sending newsletters)
SMTP_SERVER=smtp.gmail.com
SMTP_PORT=587
EMAIL_USER=your-email@gmail.com
EMAIL_PASSWORD=your-app-password
# Note: For Gmail, use an App Password: https://support.google.com/accounts/answer/185833
# Ollama Configuration (for AI-powered features)
# Remote Ollama server URL (e.g., http://your-server-ip:11434 or https://your-domain.com)
OLLAMA_BASE_URL=http://localhost:11434
# Optional: API key if your Ollama server requires authentication
# OLLAMA_API_KEY=your-api-key-here
# Model name to use (e.g., llama2, mistral, codellama, llama3, phi3:latest)
OLLAMA_MODEL=phi3:latest
# Enable/disable Ollama features (true/false)
# When enabled, the crawler will automatically summarize articles in English (≤150 words)
OLLAMA_ENABLED=true
# Timeout for Ollama requests in seconds (default: 30)
OLLAMA_TIMEOUT=30
# Flask Server Configuration
# Port for Flask server (default: 5001 to avoid AirPlay conflict on macOS)
FLASK_PORT=5001
# Tracking Configuration
# Enable/disable email tracking features (true/false)
TRACKING_ENABLED=true
# Base URL for tracking API (used in tracking pixel and link URLs)
# In production, use your actual domain (e.g., https://yourdomain.com)
TRACKING_API_URL=http://localhost:5001
# Number of days to retain tracking data before anonymization
TRACKING_DATA_RETENTION_DAYS=90