]> BookStack Code Mirror - bookstack/blob - config/filesystems.php
Updated Swedish translation
[bookstack] / config / filesystems.php
1 <?php
2
3 return [
4
5     /*
6     |--------------------------------------------------------------------------
7     | Default Filesystem Disk
8     |--------------------------------------------------------------------------
9     |
10     | Here you may specify the default filesystem disk that should be used
11     | by the framework. A "local" driver, as well as a variety of cloud
12     | based drivers are available for your choosing. Just store away!
13     |
14     | Supported: "local", "ftp", "s3", "rackspace"
15     |
16     */
17
18     'default' => env('STORAGE_TYPE', 'local'),
19
20     /*
21     |--------------------------------------------------------------------------
22     | Storage URL
23     |--------------------------------------------------------------------------
24     |
25     | This is the url to where the storage is located for when using an external
26     | file storage service, such as s3, to store publicly accessible assets.
27     |
28     */
29     'url' => env('STORAGE_URL', false),
30
31     /*
32     |--------------------------------------------------------------------------
33     | Default Cloud Filesystem Disk
34     |--------------------------------------------------------------------------
35     |
36     | Many applications store files both locally and in the cloud. For this
37     | reason, you may specify a default "cloud" driver here. This driver
38     | will be bound as the Cloud disk implementation in the container.
39     |
40     */
41
42     'cloud' => 's3',
43
44     /*
45     |--------------------------------------------------------------------------
46     | Filesystem Disks
47     |--------------------------------------------------------------------------
48     |
49     | Here you may configure as many filesystem "disks" as you wish, and you
50     | may even configure multiple disks of the same driver. Defaults have
51     | been setup for each driver as an example of the required options.
52     |
53     */
54
55     'disks' => [
56
57         'local' => [
58             'driver' => 'local',
59             'root' => public_path(),
60         ],
61
62         'local_secure' => [
63             'driver' => 'local',
64             'root'   => storage_path(),
65         ],
66
67         'ftp' => [
68             'driver'   => 'ftp',
69             'host'     => 'ftp.example.com',
70             'username' => 'your-username',
71             'password' => 'your-password',
72
73             // Optional FTP Settings...
74             // 'port'     => 21,
75             // 'root'     => '',
76             // 'passive'  => true,
77             // 'ssl'      => true,
78             // 'timeout'  => 30,
79         ],
80
81         's3' => [
82             'driver' => 's3',
83             'key'    => env('STORAGE_S3_KEY', 'your-key'),
84             'secret' => env('STORAGE_S3_SECRET', 'your-secret'),
85             'region' => env('STORAGE_S3_REGION', 'your-region'),
86             'bucket' => env('STORAGE_S3_BUCKET', 'your-bucket'),
87         ],
88
89         'rackspace' => [
90             'driver'    => 'rackspace',
91             'username'  => 'your-username',
92             'key'       => 'your-key',
93             'container' => 'your-container',
94             'endpoint'  => 'https://identity.api.rackspacecloud.com/v2.0/',
95             'region'    => 'IAD',
96             'url_type'  => 'publicURL',
97         ],
98
99     ],
100
101 ];
Morty Proxy This is a proxified and sanitized view of the page, visit original site.