32b1130632
- Generate and serve real /favicon.ico from static assets - Update HTML to use /favicon.ico - Add ENABLE_MODEL_RW_API setting (default: false) - Disable POST/DELETE model endpoints by default - Hide write endpoints from OpenAPI when disabled - Return 404 for write endpoints when disabled - Update env.example with ENABLE_MODEL_RW_API documentation - Update README and PRD with R/W API policy and remote compose notes - Add tests to verify write endpoints are disabled by default
61 lines
1.9 KiB
Plaintext
61 lines
1.9 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
|
|
|
|
# Abilita API R/W modelli (POST /pull, DELETE /models/{name})
|
|
# Default sicuro: false (endpoint non disponibili)
|
|
ENABLE_MODEL_RW_API=false
|
|
|
|
# ===========================================
|
|
# 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
|