Skip to content

Commit

Permalink
fix(s3): Add optional endpoint_url parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
cogk committed Nov 14, 2024
1 parent a23f754 commit 214c9ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions agent/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,12 +380,14 @@ def upload_offsite_backup(self, backup_files, offsite):
aws_access_key_id=auth["ACCESS_KEY"],
aws_secret_access_key=auth["SECRET_KEY"],
region_name=region,
endpoint_url=auth.get("ENDPOINT_URL"),
)
else:
s3 = boto3.client(
"s3",
aws_access_key_id=auth["ACCESS_KEY"],
aws_secret_access_key=auth["SECRET_KEY"],
endpoint_url=auth.get("ENDPOINT_URL"),
)

for backup_file in backup_files.values():
Expand Down

0 comments on commit 214c9ed

Please sign in to comment.