fix(storage): Hetzner storage buckets not working

- fix: Hetzner buckets do not work for backups
- refactor: removed special handling for Hetzner as it is no longer needed
This commit is contained in:
peaklabs-dev
2025-01-23 18:51:24 +01:00
parent ec9f8de873
commit 8b6b1b6a9d
5 changed files with 3 additions and 19 deletions

View File

@@ -208,7 +208,7 @@ function deleteBackupsS3(string|array|null $filenames, S3Storage $s3): void
'bucket' => $s3->bucket,
'endpoint' => $s3->endpoint,
'use_path_style_endpoint' => true,
'bucket_endpoint' => $s3->isHetzner() || $s3->isDigitalOcean(),
'bucket_endpoint' => $s3->isDigitalOcean(),
'aws_url' => $s3->awsUrl(),
]);

View File

@@ -14,7 +14,7 @@ function set_s3_target(S3Storage $s3)
'bucket' => $s3['bucket'],
'endpoint' => $s3['endpoint'],
'use_path_style_endpoint' => true,
'bucket_endpoint' => $s3->isHetzner() || $s3->isDigitalOcean(),
'bucket_endpoint' => $s3->isDigitalOcean(),
'aws_url' => $s3->awsUrl(),
]);
}