update
This commit is contained in:
32
backend/env.template
Normal file
32
backend/env.template
Normal file
@@ -0,0 +1,32 @@
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user