]> BookStack Code Mirror - bookstack/blob - config/filesystems.php
Hide permissions table unless custom permissions are enabled
[bookstack] / 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     // Storage URL
18     // This is the url to where the storage is located for when using an external
19     // file storage service, such as s3, to store publicly accessible assets.
20     'url' => env('STORAGE_URL', false),
21
22     // Default Cloud Filesystem Disk
23     'cloud' => 's3',
24
25     // Available filesystem disks
26     // Only local, local_secure & s3 are supported by BookStack
27     'disks' => [
28
29         'local' => [
30             'driver' => 'local',
31             'root' => public_path(),
32         ],
33
34         'local_secure' => [
35             'driver' => 'local',
36             'root'   => storage_path(),
37         ],
38
39         'ftp' => [
40             'driver'   => 'ftp',
41             'host'     => 'ftp.example.com',
42             'username' => 'your-username',
43             'password' => 'your-password',
44         ],
45
46         's3' => [
47             'driver' => 's3',
48             'key'    => env('STORAGE_S3_KEY', 'your-key'),
49             'secret' => env('STORAGE_S3_SECRET', 'your-secret'),
50             'region' => env('STORAGE_S3_REGION', 'your-region'),
51             'bucket' => env('STORAGE_S3_BUCKET', 'your-bucket'),
52             'endpoint' => env('STORAGE_S3_ENDPOINT', null),
53             'use_path_style_endpoint' => env('STORAGE_S3_ENDPOINT', null) !== null,
54         ],
55
56         'rackspace' => [
57             'driver'    => 'rackspace',
58             'username'  => 'your-username',
59             'key'       => 'your-key',
60             'container' => 'your-container',
61             'endpoint'  => 'https://identity.api.rackspacecloud.com/v2.0/',
62             'region'    => 'IAD',
63             'url_type'  => 'publicURL',
64         ],
65
66     ],
67
68 ];
Morty Proxy This is a proxified and sanitized view of the page, visit original site.