implement S3 garage on the backend

This commit is contained in:
Giovanni committed 2026-10-05 21:29:48 +02:00
1 parent 65e328fcc5
commit 6f66254577
6 files changed
+63 -6

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import os
import boto3
s3_client = boto3.client(
"s3",
endpoint_url=os.getenv("GARAGE_ENDPOINT_URL", "http://127.0.0.1:3900"),
aws_access_key_id=os.getenv("GARAGE_ACCESS_KEY"),
aws_secret_access_key=os.getenv("GARAGE_SECRET_KEY"),
)
BUCKET_NAME = os.getenv("GARAGE_BUCKET_NAME", "nom-de-ton-bucket")