]> BookStack Code Mirror - bookstack/blob - app/Config/filesystems.php
Merge remote-tracking branch 'upstream/master'
[bookstack] / app / Config / filesystems.php
1 <?php
2
3 /**
4  * Filesystem configuration options.
5  *
6  * Changes to these config files are not supported by BookStack and may break upon updates.
7  * Configuration should be altered via the `.env` file or environment variables.
8  * Do not edit this file unless you're happy to maintain any changes yourself.
9  */
10
11 return [
12
13     // Default Filesystem Disk
14     // Options: local, local_secure, s3
15     'default' => env('STORAGE_TYPE', 'local'),
16
17     // Filesystem to use specifically for image uploads.
18     'images' => env('STORAGE_IMAGE_TYPE', env('STORAGE_TYPE', 'local')),
19
20     // Filesystem to use specifically for file attachments.
21     'attachments' => env('STORAGE_ATTACHMENT_TYPE', env('STORAGE_TYPE', 'local')),
22
23     // Storage URL
24     // This is the url to where the storage is located for when using an external
25     // file storage service, such as s3, to store publicly accessible assets.
26     'url' => env('STORAGE_URL', false),
27
28     // Default Cloud Filesystem Disk
29     'cloud' => 's3',
30
31     // Available filesystem disks
32     // Only local, local_secure & s3 are supported by BookStack
33     'disks' => [
34
35         'local' => [
36             'driver' => 'local',
37             'root' => public_path(),
38         ],
39
40         'local_secure' => [
41             'driver' => 'local',
42             'root'   => storage_path(),
43         ],
44
45         'ftp' => [
46             'driver'   => 'ftp',
47             'host'     => 'ftp.example.com',
48             'username' => 'your-username',
49             'password' => 'your-password',
50         ],
51
52         's3' => [
53             'driver' => 's3',
54             'key'    => env('STORAGE_S3_KEY', 'your-key'),
55             'secret' => env('STORAGE_S3_SECRET', 'your-secret'),
56             'region' => env('STORAGE_S3_REGION', 'your-region'),
57             'bucket' => env('STORAGE_S3_BUCKET', 'your-bucket'),
58             'endpoint' => env('STORAGE_S3_ENDPOINT', null),
59             'use_path_style_endpoint' => env('STORAGE_S3_ENDPOINT', null) !== null,
60         ],
61
62         'rackspace' => [
63             'driver'    => 'rackspace',
64             'username'  => 'your-username',
65             'key'       => 'your-key',
66             'container' => 'your-container',
67             'endpoint'  => 'https://identity.api.rackspacecloud.com/v2.0/',
68             'region'    => 'IAD',
69             'url_type'  => 'publicURL',
70         ],
71
72     ],
73
74 ];