- CLAUDE.md con arquitectura y comandos del proyecto - env.example: agregar LIMIT_CONVERSATIONS, MAX_CHARS_PER_MESSAGE, OPENAI_BASE_URL - docker-compose.override: puerto 3001, extra_hosts para modelo local en Linux - OpenAI clients: soporte OPENAI_BASE_URL para apuntar a modelo local compatible - stats.js: sync de órdenes en background, dashboard no bloquea al cargar - package-lock: dbmate movido a prod dependencies Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
61 lines
1.5 KiB
Plaintext
61 lines
1.5 KiB
Plaintext
# Botino - Example Environment Variables
|
|
# Copy this file to .env and fill in the values
|
|
|
|
# ===================
|
|
# Core
|
|
# ===================
|
|
PORT=3000
|
|
TENANT_KEY=piaf
|
|
DATABASE_URL=postgresql://user:password@localhost:5432/botino
|
|
PG_POOL_MAX=10
|
|
PG_IDLE_TIMEOUT_MS=30000
|
|
PG_CONN_TIMEOUT_MS=5000
|
|
APP_ENCRYPTION_KEY=your-32-char-encryption-key-here
|
|
|
|
# ===================
|
|
# OpenAI
|
|
# ===================
|
|
OPENAI_API_KEY=sk-xxx
|
|
OPENAI_MODEL=gpt-4o-mini
|
|
|
|
# ===================
|
|
# Turn Engine
|
|
# ===================
|
|
# v1 = pipeline actual (heurísticas + guardrails + LLM plan final)
|
|
# v2 = LLM-first NLU, deterministic core (nuevo motor)
|
|
TURN_ENGINE=v1
|
|
|
|
# ===================
|
|
# WooCommerce (usado por seed y fallback)
|
|
# Estas variables son leídas por scripts/seed-tenant.mjs para crear
|
|
# la configuración inicial del tenant en la base de datos.
|
|
# ===================
|
|
WOO_BASE_URL=https://tu-tienda.com
|
|
WOO_CONSUMER_KEY=ck_xxx
|
|
WOO_CONSUMER_SECRET=cs_xxx
|
|
|
|
# ===================
|
|
# Evolution API - WhatsApp
|
|
# ===================
|
|
EVOLUTION_API_URL=https://api.evolution.com
|
|
EVOLUTION_API_KEY=your-api-key
|
|
EVOLUTION_INSTANCE_NAME=piaf
|
|
EVOLUTION_SEND_ENABLED=0 # 0=solo BD (pruebas), 1=envía a WhatsApp (producción)
|
|
|
|
# ===================
|
|
# Limits
|
|
# ===================
|
|
LIMIT_CONVERSATIONS=100
|
|
MAX_CHARS_PER_MESSAGE=4000
|
|
|
|
# ===================
|
|
# Debug Flags (1/true/yes/on para activar)
|
|
# ===================
|
|
DEBUG_PERF=0
|
|
DEBUG_WOO_HTTP=0
|
|
DEBUG_WOO_PRODUCTS=0
|
|
DEBUG_LLM=0
|
|
DEBUG_EVOLUTION=0
|
|
DEBUG_DB=0
|
|
DEBUG_RESOLVE=0
|