您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

relyt_config.py 957B

123456789101112131415161718192021222324252627282930313233
  1. from pydantic import Field, PositiveInt
  2. from pydantic_settings import BaseSettings
  3. class RelytConfig(BaseSettings):
  4. """
  5. Configuration settings for Relyt database
  6. """
  7. RELYT_HOST: str | None = Field(
  8. description="Hostname or IP address of the Relyt server (e.g., 'localhost' or 'relyt.example.com')",
  9. default=None,
  10. )
  11. RELYT_PORT: PositiveInt = Field(
  12. description="Port number on which the Relyt server is listening (default is 9200)",
  13. default=9200,
  14. )
  15. RELYT_USER: str | None = Field(
  16. description="Username for authenticating with the Relyt database",
  17. default=None,
  18. )
  19. RELYT_PASSWORD: str | None = Field(
  20. description="Password for authenticating with the Relyt database",
  21. default=None,
  22. )
  23. RELYT_DATABASE: str | None = Field(
  24. description="Name of the Relyt database to connect to (default is 'default')",
  25. default="default",
  26. )