settings.py 921 B

123456789101112131415161718192021
  1. from core_shared import ServiceSettings
  2. class ApiGatewaySettings(ServiceSettings):
  3. service_name: str = "api-gateway"
  4. service_port: int = 8000
  5. database_url: str = "sqlite:///./api_gateway.db"
  6. workflow_service_url: str = "http://127.0.0.1:8002"
  7. session_service_url: str = "http://127.0.0.1:8001"
  8. runtime_service_url: str = "http://127.0.0.1:8003"
  9. tool_service_url: str = "http://127.0.0.1:8004"
  10. model_gateway_service_url: str = "http://127.0.0.1:8005"
  11. code_runner_service_url: str = "http://127.0.0.1:8006"
  12. agent_service_url: str = "http://127.0.0.1:8007"
  13. memory_service_url: str = "http://127.0.0.1:8008"
  14. team_service_url: str = "http://127.0.0.1:8009"
  15. skill_service_url: str = "http://127.0.0.1:8010"
  16. proxy_timeout_seconds: float = 30.0
  17. downstream_health_timeout_seconds: float = 2.0
  18. auth_required: bool = False
  19. api_key_header_name: str = "x-api-key"