17 lines
275 B
Python
17 lines
275 B
Python
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
R2_ENDPOINT: str
|
|
R2_ACCESS_KEY: str
|
|
R2_SECRET_KEY: str
|
|
R2_BUCKET: str
|
|
PUBLIC_URL: str
|
|
UPLOAD_PASSWORD: str
|
|
|
|
class Config:
|
|
env_file = ".env"
|
|
|
|
|
|
settings = Settings()
|