settings.py 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. from core_shared import ServiceSettings
  2. class ApiGatewaySettings(ServiceSettings):
  3. service_name: str = "api-gateway"
  4. service_port: int = 8000
  5. workflow_service_url: str = "http://127.0.0.1:8002"
  6. session_service_url: str = "http://127.0.0.1:8001"
  7. runtime_service_url: str = "http://127.0.0.1:8003"
  8. tool_service_url: str = "http://127.0.0.1:8004"
  9. model_gateway_service_url: str = "http://127.0.0.1:8005"
  10. code_runner_service_url: str = "http://127.0.0.1:8006"
  11. agent_service_url: str = "http://127.0.0.1:8007"
  12. memory_service_url: str = "http://127.0.0.1:8008"
  13. team_service_url: str = "http://127.0.0.1:8009"
  14. skill_service_url: str = "http://127.0.0.1:8010"
  15. human_service_url: str = "http://127.0.0.1:8011"
  16. knowledge_service_url: str = "http://127.0.0.1:8012"
  17. event_service_url: str = "http://127.0.0.1:8013"
  18. auth_service_url: str = "http://127.0.0.1:8014"
  19. scheduler_service_url: str = "http://127.0.0.1:8015"
  20. proxy_timeout_seconds: float = 30.0
  21. downstream_health_timeout_seconds: float = 2.0
  22. auth_required: bool = False
  23. authz_required: bool = False
  24. api_key_header_name: str = "x-api-key"
  25. user_id_header_name: str = "x-user-id"
  26. authz_timeout_seconds: float = 2.0
  27. rate_limit_enabled: bool = False
  28. global_rate_limit_per_minute: int = 600
  29. api_key_rate_limit_per_minute: int = 1200