Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

1.5 KB
Raw Blame
from typing import Literal

from pydantic import Field
from pydantic_settings import BaseSettings


class ArchiveStorageConfig(BaseSettings):
    """
    Configuration settings for workflow run logs archiving storage.
    """

    ARCHIVE_STORAGE_ENABLED: bool = Field(
        description="Enable workflow run logs archiving to S3-compatible storage",
        default=False,
    )

    ARCHIVE_STORAGE_ENDPOINT: str | None = Field(
        description="URL of the S3-compatible storage endpoint (e.g., 'https://storage.example.com')",
        default=None,
    )

    ARCHIVE_STORAGE_ARCHIVE_BUCKET: str | None = Field(
        description="Name of the bucket to store archived workflow logs",
        default=None,
    )

    ARCHIVE_STORAGE_EXPORT_BUCKET: str | None = Field(
        description="Name of the bucket to store exported workflow runs",
        default=None,
    )

    ARCHIVE_STORAGE_ACCESS_KEY: str | None = Field(
        description="Access key ID for authenticating with storage",
        default=None,
    )

    ARCHIVE_STORAGE_SECRET_KEY: str | None = Field(
        description="Secret access key for authenticating with storage",
        default=None,
    )

    ARCHIVE_STORAGE_REGION: str = Field(
        description="Region for storage (use 'auto' if the provider supports it)",
        default="auto",
    )

    ARCHIVE_STORAGE_ADDRESS_STYLE: Literal["path", "virtual", "auto"] = Field(
        description="S3 addressing style for archive storage: 'path' (default), 'virtual' (virtual-hosted), or 'auto'",
        default="path",
    )