feat: update environment configuration for local development and enhance deployment scripts

This commit is contained in:
2026-04-16 10:11:19 -04:00
parent 6aa0b235c3
commit 387d473a7c
9 changed files with 177 additions and 202 deletions
+16 -7
View File
@@ -11,19 +11,25 @@ JWT_SECRET=dev_jwt_secret_change_in_production
# Logging
RUST_LOG=debug
ENVIRONMENT=dev
# AI Configuration
# Providers: 'openai' or 'local'
AI_PROVIDER=local
OPENAI_API_KEY=
# Local AI (Ollama & Whisper) - Production (HTTPS with SSH tunnel)
PROD_WHISPER_URL=http://host.docker.internal:8080
# Local AI (Ollama & Whisper) - local execution
LOCAL_OLLAMA_URL=http://localhost:11434
LOCAL_WHISPER_URL=http://localhost:9000
DEV_OLLAMA_URL=http://localhost:11434
DEV_WHISPER_URL=http://localhost:9000
DEV_BARK_URL=http://localhost:8000
# SMTP for local development
SMTP_ENABLED=true
SMTP_HOST=mailpit
SMTP_PORT=1025
SMTP_FROM=OpenCCB Dev <dev@norteamericano.com>
SMTP_FROM=[LOCAL-QA] OpenCCB Dev <dev@norteamericano.com>
SMTP_USERNAME=
SMTP_PASSWORD=
@@ -33,8 +39,11 @@ NEXT_PUBLIC_LMS_API_URL=http://localhost:3002/lms-api
NEXT_PUBLIC_STUDIO_DOMAIN=localhost
NEXT_PUBLIC_LEARNING_DOMAIN=localhost
# MySQL for courses integration (local)
MYSQL_DATABASE_URL=mysql://user:password@host.docker.internal:3306/courses_db
# External MySQL/SAM integration (same as production)
MYSQL_DATABASE_URL=mysql://root:Smith3976!@ec2-18-222-25-254.us-east-2.compute.amazonaws.com:3306/sige_sam_v3
SAM_DIAGNOSTICO_DATABASE_URL=mysql://root:Smith3976!@ec2-18-222-25-254.us-east-2.compute.amazonaws.com:3306/SAM_diagnostico
SAM_DATABASE_URL=mysql://root:Smith3976!@ec2-18-222-25-254.us-east-2.compute.amazonaws.com:3306/sige_sam_v3
# SAM Diagnostico DB (local)
SAM_DIAGNOSTICO_DATABASE_URL=postgresql://user:password@host.docker.internal:5434/sam_db
LOCAL_VIDEO_BRIDGE_URL=http://localhost:8000
EMBEDDING_MODEL=nomic-embed-text
LOCAL_LLM_MODEL=llama3.2:3b