2024-10-11 22:48:57 +08:00
|
|
|
from typing import Optional
|
|
|
|
|
2024-12-10 02:51:20 +08:00
|
|
|
from pydantic import Field
|
|
|
|
from pydantic_settings import BaseSettings
|
2024-10-11 22:48:57 +08:00
|
|
|
|
|
|
|
|
2024-12-10 02:51:20 +08:00
|
|
|
class SupabaseStorageConfig(BaseSettings):
|
2024-10-11 22:48:57 +08:00
|
|
|
"""
|
|
|
|
Configuration settings for Supabase Object Storage Service
|
|
|
|
"""
|
|
|
|
|
|
|
|
SUPABASE_BUCKET_NAME: Optional[str] = Field(
|
|
|
|
description="Name of the Supabase bucket to store and retrieve objects (e.g., 'dify-bucket')",
|
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
SUPABASE_API_KEY: Optional[str] = Field(
|
|
|
|
description="API KEY for authenticating with Supabase",
|
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
SUPABASE_URL: Optional[str] = Field(
|
|
|
|
description="URL of the Supabase",
|
|
|
|
default=None,
|
|
|
|
)
|