mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
34 lines
949 B
Python
34 lines
949 B
Python
from pydantic import Field
|
|
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class DeploymentConfig(BaseSettings):
|
|
"""
|
|
Configuration settings for application deployment
|
|
"""
|
|
|
|
APPLICATION_NAME: str = Field(
|
|
description="Name of the application, used for identification and logging purposes",
|
|
default="langgenius/dify",
|
|
)
|
|
|
|
DEBUG: bool = Field(
|
|
description="Enable debug mode for additional logging and development features",
|
|
default=False,
|
|
)
|
|
|
|
TESTING: bool = Field(
|
|
description="Enable testing mode for running automated tests",
|
|
default=False,
|
|
)
|
|
|
|
EDITION: str = Field(
|
|
description="Deployment edition of the application (e.g., 'SELF_HOSTED', 'CLOUD')",
|
|
default="SELF_HOSTED",
|
|
)
|
|
|
|
DEPLOY_ENV: str = Field(
|
|
description="Deployment environment (e.g., 'PRODUCTION', 'DEVELOPMENT'), default to PRODUCTION",
|
|
default="PRODUCTION",
|
|
)
|