__init__.py 553 B

123456789101112131415161718192021222324252627
  1. from pydantic import BaseModel, Field
  2. class DeploymentConfig(BaseModel):
  3. """
  4. Deployment configs
  5. """
  6. APPLICATION_NAME: str = Field(
  7. description='application name',
  8. default='langgenius/dify',
  9. )
  10. TESTING: bool = Field(
  11. description='',
  12. default=False,
  13. )
  14. EDITION: str = Field(
  15. description='deployment edition',
  16. default='SELF_HOSTED',
  17. )
  18. DEPLOY_ENV: str = Field(
  19. description='deployment environment, default to PRODUCTION.',
  20. default='PRODUCTION',
  21. )