]> BookStack Code Mirror - bookstack/blob - app/Config/filesystems.php
Merge branch 'development' into lukeshu/oidc-development
[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     // Available filesystem disks
29     // Only local, local_secure & s3 are supported by BookStack
30     'disks' => [
31
32         'local' => [
33             'driver'     => 'local',
34             'root'       => public_path(),
35             'visibility' => 'public',
36             'throw'      => true,
37         ],
38
39         'local_secure_attachments' => [
40             'driver' => 'local',
41             'root'   => storage_path('uploads/files/'),
42             'throw'  => true,
43         ],
44
45         'local_secure_images' => [
46             'driver'     => 'local',
47             'root'       => storage_path('uploads/images/'),
48             'visibility' => 'public',
49             'throw'      => true,
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             'throw'                   => true,
61             'stream_reads'            => false,
62         ],
63
64     ],
65
66     // Symbolic Links
67     // Here you may configure the symbolic links that will be created when the
68     // `storage:link` Artisan command is executed. The array keys should be
69     // the locations of the links and the values should be their targets.
70     'links' => [
71         public_path('storage') => storage_path('app/public'),
72     ],
73
74 ];