2020-04-04 06:40:20 +00:00
|
|
|
<?php
|
|
|
|
|
2020-04-26 23:07:36 +00:00
|
|
|
use Pterodactyl\Models\Backup;
|
|
|
|
|
2020-04-04 06:40:20 +00:00
|
|
|
return [
|
|
|
|
// The backup driver to use for this Panel instance. All client generated server backups
|
|
|
|
// will be stored in this location by default. It is possible to change this once backups
|
|
|
|
// have been made, without losing data.
|
2020-04-26 23:07:36 +00:00
|
|
|
'default' => env('APP_BACKUP_DRIVER', 'local'),
|
2020-04-04 06:40:20 +00:00
|
|
|
|
|
|
|
'disks' => [
|
|
|
|
// There is no configuration for the local disk for Wings. That configuration
|
|
|
|
// is determined by the Daemon configuration, and not the Panel.
|
2020-04-26 23:07:36 +00:00
|
|
|
'local' => [
|
|
|
|
'adapter' => Backup::ADAPTER_WINGS,
|
|
|
|
],
|
2020-04-04 06:40:20 +00:00
|
|
|
|
2020-04-26 23:07:36 +00:00
|
|
|
// Configuration for storing backups in Amazon S3. This uses the same credentials
|
|
|
|
// specified in filesystems.php but does include some more specific settings for
|
|
|
|
// backups, notably bucket, location, and use_accelerate_endpoint.
|
2020-04-04 06:40:20 +00:00
|
|
|
's3' => [
|
2020-04-26 23:07:36 +00:00
|
|
|
'adapter' => Backup::ADAPTER_AWS_S3,
|
|
|
|
|
|
|
|
'region' => env('AWS_DEFAULT_REGION'),
|
|
|
|
'key' => env('AWS_ACCESS_KEY_ID'),
|
|
|
|
'secret' => env('AWS_SECRET_ACCESS_KEY'),
|
2020-04-04 06:40:20 +00:00
|
|
|
|
|
|
|
// The S3 bucket to use for backups.
|
2020-04-26 23:07:36 +00:00
|
|
|
'bucket' => env('AWS_BACKUPS_BUCKET'),
|
2020-04-04 06:40:20 +00:00
|
|
|
|
|
|
|
// The location within the S3 bucket where backups will be stored. Backups
|
|
|
|
// are stored within a folder using the server's UUID as the name. Each
|
|
|
|
// backup for that server lives within that folder.
|
2020-04-26 23:07:36 +00:00
|
|
|
'prefix' => env('AWS_BACKUPS_BUCKET') ?? '',
|
|
|
|
|
|
|
|
'use_accelerate_endpoint' => env('AWS_BACKUPS_USE_ACCELERATE', false),
|
2020-04-04 06:40:20 +00:00
|
|
|
],
|
|
|
|
],
|
|
|
|
];
|