You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

__init__.py 993B

12345678910111213141516171819202122232425262728293031323334
  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. # Request logging configuration
  16. ENABLE_REQUEST_LOGGING: bool = Field(
  17. description="Enable request and response body logging",
  18. default=False,
  19. )
  20. EDITION: str = Field(
  21. description="Deployment edition of the application (e.g., 'SELF_HOSTED', 'CLOUD')",
  22. default="SELF_HOSTED",
  23. )
  24. DEPLOY_ENV: str = Field(
  25. description="Deployment environment (e.g., 'PRODUCTION', 'DEVELOPMENT'), default to PRODUCTION",
  26. default="PRODUCTION",
  27. )