mirror of
https://github.com/pyrohost/pyrodactyl.git
synced 2026-04-06 04:01:58 +02:00
fix: prefix rustic backups with rustic-repos in s3
This commit is contained in:
@@ -65,7 +65,7 @@ class RusticConfigController extends Controller
|
||||
// For S3, return the actual S3 path that rustic will use
|
||||
$s3Config = config('backups.disks.rustic_s3');
|
||||
$bucket = $s3Config['bucket'] ?? '';
|
||||
$prefix = rtrim($s3Config['prefix'] ?? 'pterodactyl-backups/', '/');
|
||||
$prefix = rtrim($s3Config['prefix'] ?? 'rustic-repos/', '/');
|
||||
|
||||
if (empty($bucket)) {
|
||||
throw new \InvalidArgumentException('S3 bucket not configured for rustic backups');
|
||||
|
||||
@@ -85,7 +85,7 @@ return [
|
||||
'endpoint' => env('RUSTIC_S3_ENDPOINT', env('AWS_ENDPOINT')),
|
||||
'region' => env('RUSTIC_S3_REGION', env('AWS_DEFAULT_REGION', 'us-east-1')),
|
||||
'bucket' => env('RUSTIC_S3_BUCKET'),
|
||||
'prefix' => env('RUSTIC_S3_PREFIX', 'pterodactyl-backups/'),
|
||||
'prefix' => env('RUSTIC_S3_PREFIX', 'rustic-repos/'),
|
||||
|
||||
// S3 credentials
|
||||
'key' => env('RUSTIC_S3_ACCESS_KEY_ID', env('AWS_ACCESS_KEY_ID')),
|
||||
|
||||
Reference in New Issue
Block a user