Files
WhatsAppCentralizado/services/api-gateway/app/core/config.py
Claude AI 363e332f29 feat(phase2): integrate flow engine and add flows navigation
- Add FLOW_ENGINE_URL to API Gateway config
- Integrate flow engine in message handler (BOT status only)
- Add /flows routes to MainLayout with FlowList and FlowBuilder
- Add Flujos menu item with ApartmentOutlined icon

This completes Phase 2: Flow Engine Básico

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 10:24:08 +00:00

34 lines
795 B
Python

from pydantic_settings import BaseSettings
from functools import lru_cache
class Settings(BaseSettings):
# Database
DATABASE_URL: str = "postgresql://whatsapp_admin:password@localhost:5432/whatsapp_central"
# Redis
REDIS_URL: str = "redis://localhost:6379"
# JWT
JWT_SECRET: str = "change-me-in-production"
JWT_ALGORITHM: str = "HS256"
JWT_ACCESS_TOKEN_EXPIRE_MINUTES: int = 60
JWT_REFRESH_TOKEN_EXPIRE_DAYS: int = 7
# WhatsApp Core
WHATSAPP_CORE_URL: str = "http://localhost:3001"
# Flow Engine
FLOW_ENGINE_URL: str = "http://localhost:8001"
# CORS
CORS_ORIGINS: str = "http://localhost:5173,http://localhost:3000"
class Config:
env_file = ".env"
@lru_cache
def get_settings() -> Settings:
return Settings()