This commit is contained in:
caramelteawithmint
2026-11-20 11:53:35 +03:00
parent 2b68813b33
commit f856651e57
12 changed files with 409 additions and 153 deletions
+5 -1
View File
@@ -31,13 +31,17 @@ class Settings(BaseSettings):
database_url: str = ""
database_url_file: str = "/run/secrets/database_url"
# S3 / MinIO (для 4-й лабы)
# S3 / MinIO
s3_endpoint: str = "http://minio:9000"
s3_access_key: str = "minioadmin"
s3_secret_key: str = "minioadmin"
s3_bucket: str = "messenger-attachments"
s3_region: str = "us-east-1"
# Брокер (RabbitMQ)
broker_url: str = "amqp://guest:guest@broker:5672/"
broker_queue: str = "attachment_processing"
@property
def db_dsn(self) -> str:
from_file = _read_secret(self.database_url_file)