__init__.py 697 B

123456789101112131415161718192021222324252627282930313233
  1. from pydantic import Field
  2. from pydantic_settings import BaseSettings
  3. class DeploymentConfig(BaseSettings):
  4. """
  5. Deployment configs
  6. """
  7. APPLICATION_NAME: str = Field(
  8. description="application name",
  9. default="langgenius/dify",
  10. )
  11. DEBUG: bool = Field(
  12. description="whether to enable debug mode.",
  13. default=False,
  14. )
  15. TESTING: bool = Field(
  16. description="",
  17. default=False,
  18. )
  19. EDITION: str = Field(
  20. description="deployment edition",
  21. default="SELF_HOSTED",
  22. )
  23. DEPLOY_ENV: str = Field(
  24. description="deployment environment, default to PRODUCTION.",
  25. default="PRODUCTION",
  26. )