2015-07-12 21:01:42 +02:00
|
|
|
<?php
|
|
|
|
|
2018-12-23 17:26:39 +01:00
|
|
|
/**
|
|
|
|
* Filesystem configuration options.
|
|
|
|
*
|
|
|
|
* Changes to these config files are not supported by BookStack and may break upon updates.
|
|
|
|
* Configuration should be altered via the `.env` file or environment variables.
|
|
|
|
* Do not edit this file unless you're happy to maintain any changes yourself.
|
|
|
|
*/
|
2015-07-12 21:01:42 +02:00
|
|
|
|
2018-12-23 17:26:39 +01:00
|
|
|
return [
|
2015-07-12 21:01:42 +02:00
|
|
|
|
2018-12-23 17:26:39 +01:00
|
|
|
// Default Filesystem Disk
|
|
|
|
// Options: local, local_secure, s3
|
2016-01-09 20:23:35 +01:00
|
|
|
'default' => env('STORAGE_TYPE', 'local'),
|
|
|
|
|
2019-06-23 17:01:15 +02:00
|
|
|
// Filesystem to use specifically for image uploads.
|
|
|
|
'images' => env('STORAGE_IMAGE_TYPE', env('STORAGE_TYPE', 'local')),
|
|
|
|
|
|
|
|
// Filesystem to use specifically for file attachments.
|
|
|
|
'attachments' => env('STORAGE_ATTACHMENT_TYPE', env('STORAGE_TYPE', 'local')),
|
|
|
|
|
2018-12-23 17:26:39 +01:00
|
|
|
// Storage URL
|
|
|
|
// This is the url to where the storage is located for when using an external
|
|
|
|
// file storage service, such as s3, to store publicly accessible assets.
|
2016-01-09 20:23:35 +01:00
|
|
|
'url' => env('STORAGE_URL', false),
|
2015-07-12 21:01:42 +02:00
|
|
|
|
2018-12-23 17:26:39 +01:00
|
|
|
// Default Cloud Filesystem Disk
|
2015-07-12 21:01:42 +02:00
|
|
|
'cloud' => 's3',
|
|
|
|
|
2018-12-23 17:26:39 +01:00
|
|
|
// Available filesystem disks
|
|
|
|
// Only local, local_secure & s3 are supported by BookStack
|
2015-07-12 21:01:42 +02:00
|
|
|
'disks' => [
|
|
|
|
|
|
|
|
'local' => [
|
|
|
|
'driver' => 'local',
|
2018-01-13 12:11:23 +01:00
|
|
|
'root' => public_path(),
|
|
|
|
],
|
|
|
|
|
|
|
|
'local_secure' => [
|
|
|
|
'driver' => 'local',
|
|
|
|
'root' => storage_path(),
|
2015-07-12 21:01:42 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
's3' => [
|
|
|
|
'driver' => 's3',
|
2015-12-08 00:00:34 +01:00
|
|
|
'key' => env('STORAGE_S3_KEY', 'your-key'),
|
|
|
|
'secret' => env('STORAGE_S3_SECRET', 'your-secret'),
|
|
|
|
'region' => env('STORAGE_S3_REGION', 'your-region'),
|
|
|
|
'bucket' => env('STORAGE_S3_BUCKET', 'your-bucket'),
|
2019-01-20 16:23:49 +01:00
|
|
|
'endpoint' => env('STORAGE_S3_ENDPOINT', null),
|
|
|
|
'use_path_style_endpoint' => env('STORAGE_S3_ENDPOINT', null) !== null,
|
2015-07-12 21:01:42 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
];
|