settings.py 1.3 KB

1234567891011121314151617181920212223242526272829
  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. human_service_url: str = "http://127.0.0.1:8011"
  17. knowledge_service_url: str = "http://127.0.0.1:8012"
  18. event_service_url: str = "http://127.0.0.1:8013"
  19. auth_service_url: str = "http://127.0.0.1:8014"
  20. scheduler_service_url: str = "http://127.0.0.1:8015"
  21. proxy_timeout_seconds: float = 30.0
  22. downstream_health_timeout_seconds: float = 2.0
  23. auth_required: bool = False
  24. authz_required: bool = False
  25. api_key_header_name: str = "x-api-key"
  26. user_id_header_name: str = "x-user-id"
  27. authz_timeout_seconds: float = 2.0