s3 settings

This commit is contained in:
Robert 2024-03-11 22:58:57 +07:00
parent c40e74aad3
commit c7d67c7a01
No known key found for this signature in database
GPG Key ID: F631C7FD957D5F22
2 changed files with 10 additions and 0 deletions

View File

@ -10,3 +10,9 @@ PLANFIX_TOKEN=REQUIRED
# Poetry (Gitlab Auth Token for PyPi) # Poetry (Gitlab Auth Token for PyPi)
POETRY_USERNAME=REQUIRED POETRY_USERNAME=REQUIRED
POETRY_PASSWORD=REQUIRED POETRY_PASSWORD=REQUIRED
# S3
S3_ACCESS_KEY=REQUIRED
S3_SECRET_ACCESS_KEY=REQUIRED
S3_UPLOAD_FILE_BUCKET=REQUIRED
S3_PUBLIC_URL=REQUIRED. Example: https://s3.amazonaws.com/

View File

@ -7,5 +7,9 @@ class Settings(BaseSettings):
database_name: Optional[str] = "chain-db" database_name: Optional[str] = "chain-db"
planfix_hostname: str planfix_hostname: str
planfix_token: str planfix_token: str
s3_access_key: str
s3_secret_access_key: str
s3_upload_file_bucket: str
s3_public_url: str
model_config = SettingsConfigDict(env_file=".env") model_config = SettingsConfigDict(env_file=".env")