docs: add comprehensive README and project scaffolding
- README completo con istruzioni di installazione, configurazione e utilizzo - API Swagger/OpenAPI documentata - File env.example con variabili di configurazione - Dockerfile multi-stage ottimizzato - Docker Compose con Ollama e LLM Monitor - Struttura completa dell'app FastAPI (main.py, config, api routes) - Servizio client Ollama reusabile - Dashboard web HTML con TailwindCSS - Test suite con pytest - Makefile per comandi comuni - CONTRIBUTING.md per i contributori - LICENSE MIT - .editorconfig e .dockerignore - requirements.txt e requirements-dev.txt
This commit is contained in:
+52
@@ -0,0 +1,52 @@
|
||||
# LLM Monitor - Environment Configuration Example
|
||||
# Copy this file to .env and adjust values for your environment
|
||||
|
||||
# ===========================================
|
||||
# Ollama Configuration
|
||||
# ===========================================
|
||||
# URL base dell'API Ollama
|
||||
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
|
||||
Reference in New Issue
Block a user