Files
openccb/.env.example
T
Nurfog e4866c6dee feat: SAM integration, deployment scripts, and audio response enhancements
- Add SAM (Sistema de Administración Académica) integration with sync endpoints
- Add deployment automation (deploy.sh, remote-setup.sh, setup-nginx-ssl.sh)
- Add nginx proxy configuration for SSL with Let's Encrypt
- Add audio response support for student lessons (migrations, handlers)
- Add audio evaluations admin page
- Update CORS to support wildcard subdomains for norteamericano.cl
- Add comprehensive deployment documentation (DESPLIEGUE.md, ManualDeConfiguracion.md)
- Update docker-compose.yml with nginx-proxy and acme-companion services
- Remove outdated documentation files

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-27 09:20:23 -03:00

64 lines
2.0 KiB
Bash

# ========================================
# OpenCCB Environment Configuration
# ========================================
# NOTA: Este archivo es solo un ejemplo.
# El script deploy-ssl.sh generará valores seguros automáticamente.
# ========================================
# ----------------------------------------
# Database Configuration
# PRODUCCIÓN (Docker): Usar db:5432
# DESARROLLO (Local): Usar localhost:5434
# El script deploy-ssl.sh generará un valor seguro si no existe
# ----------------------------------------
DB_PASSWORD=CHANGE_ME_GENERATE_SECURE_PASSWORD
JWT_SECRET=CHANGE_ME_GENERATE_SECURE_SECRET
# Database URLs (producción: db:5432, desarrollo: localhost:5434)
CMS_DATABASE_URL=postgresql://user:DB_PASSWORD@db:5432/openccb_cms
LMS_DATABASE_URL=postgresql://user:DB_PASSWORD@db:5432/openccb_lms
DATABASE_URL=postgresql://user:DB_PASSWORD@db:5432/openccb_cms
# Logging
RUST_LOG=info
# Let's Encrypt Configuration
# true = Staging (certificados de prueba, sin rate limits)
# false = Production (certificados reales, con rate limits)
LETSENCRYPT_STAGING=true
# AI Configuration
# Providers: 'openai' or 'local'
AI_PROVIDER=local
OPENAI_API_KEY=
# Local AI (Ollama & Whisper)
LOCAL_WHISPER_URL=http://localhost:9000
LOCAL_OLLAMA_URL=http://localhost:11434
LOCAL_LLM_MODEL=llama3.2:3b
# Embedding Model for semantic search (pgvector)
EMBEDDING_MODEL=nomic-embed-text
# Mercado Pago Configuration
MP_ACCESS_TOKEN=
MP_PUBLIC_KEY=
MP_WEBHOOK_SECRET=
MP_BACK_URL_SUCCESS=http://localhost:3003/payments/success
MP_BACK_URL_FAILURE=http://localhost:3003/payments/failure
MP_NOTIFICATION_URL=
# External MySQL Integration
MYSQL_DATABASE_URL=mysql://db_user:db_password@localhost:3306/external_database_name
EXTERNAL_TABLE_GRADES=notas
EXTERNAL_ID_TIPO_NOTA=1
# Branding Defaults
DEFAULT_ORG_NAME="Norteamericano"
DEFAULT_PLATFORM_NAME="Norteamericano Learning"
DEFAULT_LOGO_URL=""
DEFAULT_FAVICON_URL=""
DEFAULT_PRIMARY_COLOR="#3B82F6"
DEFAULT_SECONDARY_COLOR="#8B5CF6"