Configuración
Variables de entorno y opciones de configuración para ArchiCore auto-alojado.
Variables de Entorno
Requeridas
| Variable | Descripción | Ejemplo |
|---|---|---|
DATABASE_URL | Cadena de conexión PostgreSQL | postgresql://user:pass@host:5432/db |
JWT_SECRET | Secreto para tokens JWT (mín 32 caracteres) | tu-clave-muy-segura |
JINA_API_KEY | Clave API de Jina AI para embeddings | jina_xxxx |
Proveedores de IA
| Variable | Descripción |
|---|---|
ANTHROPIC_API_KEY | Clave API de Anthropic Claude |
OPENAI_API_KEY | Clave API de OpenAI |
DEEPSEEK_API_KEY | Clave API de DeepSeek |
LLM_PROVIDER | Qué LLM usar: anthropic, openai, deepseek |
LLM_MODEL | Nombre del modelo |
Servicios
| Variable | Por defecto | Descripción |
|---|---|---|
REDIS_URL | - | URL de conexión Redis |
QDRANT_URL | http://localhost:6333 | URL de Qdrant |
PORT | 3000 | Puerto del servidor HTTP |
Seguridad
| Variable | Por defecto | Descripción |
|---|---|---|
HELMET_ENABLED | false | Habilitar headers de seguridad Helmet |
CORS_RESTRICT | false | Restringir CORS a lista blanca |
CORS_ORIGINS | * | Orígenes permitidos separados por coma |
Ejemplo de archivo .env
DATABASE_URL=postgresql://archicore:password@localhost:5432/archicore
JWT_SECRET=tu-clave-secreta-muy-segura-al-menos-32-caracteres
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