b3beb525ad
- Remove Ollama service from docker-compose.yml (now external/remote)
- Remove ollama_data volume and network configuration
- Simplify compose to only llm-monitor service
- Use env_file for all configuration from .env
- Make API_PORT dynamic with ${API_PORT:-8000}
- Update env.example with Ollama remote server examples:
- Local development: http://localhost:11434
- Remote server: http://ollama.example.com:11434
- Remote with SSL: https://ollama.example.com
- Improve documentation for remote Ollama setup
This allows deployment against any Ollama server (local or remote).
57 lines
1.8 KiB
Plaintext
57 lines
1.8 KiB
Plaintext
# LLM Monitor - Environment Configuration Example
|
|
# Copia questo file in .env e personalizza per il tuo ambiente
|
|
|
|
# ===========================================
|
|
# Ollama Configuration (Remote Server)
|
|
# ===========================================
|
|
# URL base dell'API Ollama (server remoto)
|
|
# Esempi:
|
|
# - http://localhost:11434 (sviluppo locale)
|
|
# - http://ollama.example.com:11434 (server remoto)
|
|
# - https://ollama.example.com (con SSL)
|
|
OLLAMA_HOST=http://localhost:11434
|
|
|
|
# Timeout per le richieste a Ollama (secondi)
|
|
OLLAMA_TIMEOUT=30
|
|
|
|
# ===========================================
|
|
# API Configuration
|
|
# ===========================================
|
|
# Host su cui esporre l'API
|
|
API_HOST=0.0.0.0
|
|
|
|
# Porta su cui esporre l'API
|
|
API_PORT=8000
|
|
|
|
# Numero di worker processes per uVicorn
|
|
API_WORKERS=4
|
|
|
|
# ===========================================
|
|
# CORS Configuration
|
|
# ===========================================
|
|
# Origini CORS consentite (separare con virgola)
|
|
CORS_ORIGINS=http://localhost:3000,http://localhost:5173,http://localhost:8000
|
|
|
|
# ===========================================
|
|
# Logging
|
|
# ===========================================
|
|
# Livello di logging (DEBUG, INFO, WARNING, ERROR, CRITICAL)
|
|
LOG_LEVEL=INFO
|
|
|
|
# ===========================================
|
|
# Environment
|
|
# ===========================================
|
|
# Ambiente di esecuzione (development, production)
|
|
ENVIRONMENT=development
|
|
|
|
# ===========================================
|
|
# Security (opzionale)
|
|
# ===========================================
|
|
# Secret key per sessioni (genera con: python -c "import secrets; print(secrets.token_hex(32))")
|
|
# SECRET_KEY=your-secret-key-here
|
|
|
|
# ===========================================
|
|
# Database (se necessario in futuro)
|
|
# ===========================================
|
|
# DATABASE_URL=sqlite:///./llm-monitor.db
|