Configurazione
Variabili d'ambiente e opzioni di configurazione per ArchiCore self-hosted.
Variabili d'Ambiente
Obbligatorie
| Variabile | Descrizione | Esempio |
|---|---|---|
DATABASE_URL | Stringa di connessione PostgreSQL | postgresql://user:pass@host:5432/db |
JWT_SECRET | Segreto per token JWT (min 32 caratteri) | la-tua-chiave-molto-sicura |
JINA_API_KEY | Chiave API Jina AI per embeddings | jina_xxxx |
Provider IA
| Variabile | Descrizione |
|---|---|
ANTHROPIC_API_KEY | Chiave API Anthropic Claude |
OPENAI_API_KEY | Chiave API OpenAI |
DEEPSEEK_API_KEY | Chiave API DeepSeek |
LLM_PROVIDER | Quale LLM usare: anthropic, openai, deepseek |
LLM_MODEL | Nome del modello |
Servizi
| Variabile | Default | Descrizione |
|---|---|---|
REDIS_URL | - | URL connessione Redis |
QDRANT_URL | http://localhost:6333 | URL Qdrant |
PORT | 3000 | Porta server HTTP |
Sicurezza
| Variabile | Default | Descrizione |
|---|---|---|
HELMET_ENABLED | false | Abilita header sicurezza Helmet |
CORS_RESTRICT | false | Limita CORS alla whitelist |
CORS_ORIGINS | * | Origini permesse separate da virgola |
Esempio file .env
DATABASE_URL=postgresql://archicore:password@localhost:5432/archicore
JWT_SECRET=la-tua-chiave-segreta-molto-sicura-almeno-32-caratteri
JINA_API_KEY=jina_xxxxxxxxxxxxxxxxxxxx
ANTHROPIC_API_KEY=sk-ant-xxxxxxxxxxxxxxxxxxxxx
LLM_PROVIDER=anthropic
Health Checks
curl http://localhost:3000/health
curl http://localhost:3000/health/detailed