Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/config/backups.php
7382 views
1
<?php
2
3
use Pterodactyl\Models\Backup;
4
5
return [
6
// The backup driver to use for this Panel instance. All client generated server backups
7
// will be stored in this location by default. It is possible to change this once backups
8
// have been made, without losing data.
9
'default' => env('APP_BACKUP_DRIVER', Backup::ADAPTER_WINGS),
10
11
// This value is used to determine the lifespan of UploadPart presigned urls that wings
12
// uses to upload backups to S3 storage. Value is in minutes, so this would default to an hour.
13
'presigned_url_lifespan' => env('BACKUP_PRESIGNED_URL_LIFESPAN', 60),
14
15
// This value defines the maximal size of a single part for the S3 multipart upload during backups
16
// The maximal part size must be given in bytes. The default value is 5GB.
17
// Note that 5GB is the maximum for a single part when using AWS S3.
18
'max_part_size' => env('BACKUP_MAX_PART_SIZE', 5 * 1024 * 1024 * 1024),
19
20
// The time to wait before automatically failing a backup, time is in minutes and defaults
21
// to 6 hours. To disable this feature, set the value to `0`.
22
'prune_age' => env('BACKUP_PRUNE_AGE', 360),
23
24
// Defines the backup creation throttle limits for users. In this default example, we allow
25
// a user to create two (successful or pending) backups per 10 minutes. Even if they delete
26
// a backup it will be included in the throttle count.
27
//
28
// Set the period to "0" to disable this throttle. The period is defined in seconds.
29
'throttles' => [
30
'limit' => env('BACKUP_THROTTLE_LIMIT', 2),
31
'period' => env('BACKUP_THROTTLE_PERIOD', 600),
32
],
33
34
'disks' => [
35
// There is no configuration for the local disk for Wings. That configuration
36
// is determined by the Daemon configuration, and not the Panel.
37
'wings' => [
38
'adapter' => Backup::ADAPTER_WINGS,
39
],
40
41
// Configuration for storing backups in Amazon S3. This uses the same credentials
42
// specified in filesystems.php but does include some more specific settings for
43
// backups, notably bucket, location, and use_accelerate_endpoint.
44
's3' => [
45
'adapter' => Backup::ADAPTER_AWS_S3,
46
47
'region' => env('AWS_DEFAULT_REGION'),
48
'key' => env('AWS_ACCESS_KEY_ID'),
49
'secret' => env('AWS_SECRET_ACCESS_KEY'),
50
51
// The S3 bucket to use for backups.
52
'bucket' => env('AWS_BACKUPS_BUCKET'),
53
54
// The location within the S3 bucket where backups will be stored. Backups
55
// are stored within a folder using the server's UUID as the name. Each
56
// backup for that server lives within that folder.
57
'prefix' => env('AWS_BACKUPS_BUCKET') ?? '',
58
59
'endpoint' => env('AWS_ENDPOINT'),
60
'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
61
'use_accelerate_endpoint' => env('AWS_BACKUPS_USE_ACCELERATE', false),
62
63
'storage_class' => env('AWS_BACKUPS_STORAGE_CLASS'),
64
],
65
],
66
];
67
68