mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
28 lines
588 B
Python
28 lines
588 B
Python
from pydantic import Field
|
|
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class DeploymentConfig(BaseSettings):
|
|
"""
|
|
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',
|
|
)
|
|
|
|
DEPLOY_ENV: str = Field(
|
|
description='deployment environment, default to PRODUCTION.',
|
|
default='PRODUCTION',
|
|
)
|