__init__.py 949 B

123456789101112131415161718192021222324252627282930313233
  1. from pydantic import Field
  2. from pydantic_settings import BaseSettings
  3. class DeploymentConfig(BaseSettings):
  4. """
  5. Configuration settings for application deployment
  6. """
  7. APPLICATION_NAME: str = Field(
  8. description="Name of the application, used for identification and logging purposes",
  9. default="langgenius/dify",
  10. )
  11. DEBUG: bool = Field(
  12. description="Enable debug mode for additional logging and development features",
  13. default=False,
  14. )
  15. TESTING: bool = Field(
  16. description="Enable testing mode for running automated tests",
  17. default=False,
  18. )
  19. EDITION: str = Field(
  20. description="Deployment edition of the application (e.g., 'SELF_HOSTED', 'CLOUD')",
  21. default="SELF_HOSTED",
  22. )
  23. DEPLOY_ENV: str = Field(
  24. description="Deployment environment (e.g., 'PRODUCTION', 'DEVELOPMENT'), default to PRODUCTION",
  25. default="PRODUCTION",
  26. )