settings.py 1.2 KB

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