mirror of
https://github.com/langgenius/dify.git
synced 2026-01-14 06:07:33 +08:00
Some checks are pending
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/amd64, build-api-amd64) (push) Waiting to run
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/arm64, build-api-arm64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/amd64, build-web-amd64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/arm64, build-web-arm64) (push) Waiting to run
Build and Push API & Web / create-manifest (api, DIFY_API_IMAGE_NAME, merge-api-images) (push) Blocked by required conditions
Build and Push API & Web / create-manifest (web, DIFY_WEB_IMAGE_NAME, merge-web-images) (push) Blocked by required conditions
Co-authored-by: hashjang <hash@geek.com> Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com>
35 lines
993 B
Python
35 lines
993 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,
|
|
)
|
|
|
|
# Request logging configuration
|
|
ENABLE_REQUEST_LOGGING: bool = Field(
|
|
description="Enable request and response body logging",
|
|
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",
|
|
)
|