refactor: extract cors configs into dify config and cleanup the config class (#5507)

Co-authored-by: takatost <takatost@gmail.com>
This commit is contained in:
Bowen Liang 2024-06-25 15:48:02 +08:00 • committed by GitHub
commit 2a0f03a511
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 51 additions and 55 deletions

View file

@ -5,6 +5,16 @@ class DeploymentConfig(BaseModel):
"""
Deployment configs
"""
APPLICATION_NAME: str = Field(
description='application name',
default='langgenius/dify',
)
TESTING: bool = Field(
description='',
default=False,
)
EDITION: str = Field(
description='deployment edition',
default='SELF_HOSTED',