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>
This commit is contained in:
2026-03-27 09:20:23 -03:00
parent 995065df4f
commit e4866c6dee
50 changed files with 4866 additions and 5371 deletions
+24 -10
View File
@@ -1,18 +1,32 @@
# Database URLs for local development (outside Docker)
# Change 'db' to 'localhost' if running the services natively
# NOTE: If port 5432 is occupied, use 5433 instead
CMS_DATABASE_URL=postgresql://user:password@localhost:5433/openccb_cms
LMS_DATABASE_URL=postgresql://user:password@localhost:5433/openccb_lms
# ========================================
# OpenCCB Environment Configuration
# ========================================
# NOTA: Este archivo es solo un ejemplo.
# El script deploy-ssl.sh generará valores seguros automáticamente.
# ========================================
# General fallback
DATABASE_URL=postgresql://user:password@localhost:5433/openccb_cms
# ----------------------------------------
# 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
# JWT Secret (generate with ./generate_jwt_secret.sh)
JWT_SECRET=supersecret
# 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
@@ -25,7 +39,7 @@ 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=