__init__.py 588 B

123456789101112131415161718192021222324252627
  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. TESTING: bool = Field(
  12. description='',
  13. default=False,
  14. )
  15. EDITION: str = Field(
  16. description='deployment edition',
  17. default='SELF_HOSTED',
  18. )
  19. DEPLOY_ENV: str = Field(
  20. description='deployment environment, default to PRODUCTION.',
  21. default='PRODUCTION',
  22. )