mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-26 04:05:57 +00:00
![Dan Brown](/assets/img/avatar_default.png)
* Temporarily moved back config path * Apply Laravel coding style * Shift exception handler * Shift HTTP kernel and middleware * Shift service providers * Convert options array to fluent methods * Shift to class based routes * Shift console routes * Ignore temporary framework files * Shift to class based factories * Namespace seeders * Shift PSR-4 autoloading * Shift config files * Default config files * Shift Laravel dependencies * Shift return type of base TestCase methods * Shift cleanup * Applied stylci style changes * Reverted config files location * Applied manual changes to Laravel 8 shift Co-authored-by: Shift <shift@laravelshift.com>
70 lines
2.4 KiB
PHP
70 lines
2.4 KiB
PHP
<?php
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
|
|
return [
|
|
|
|
// Default Filesystem Disk
|
|
// Options: local, local_secure, s3
|
|
'default' => env('STORAGE_TYPE', 'local'),
|
|
|
|
// 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')),
|
|
|
|
// 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.
|
|
'url' => env('STORAGE_URL', false),
|
|
|
|
// Available filesystem disks
|
|
// Only local, local_secure & s3 are supported by BookStack
|
|
'disks' => [
|
|
|
|
'local' => [
|
|
'driver' => 'local',
|
|
'root' => public_path(),
|
|
'visibility' => 'public',
|
|
],
|
|
|
|
'local_secure_attachments' => [
|
|
'driver' => 'local',
|
|
'root' => storage_path('uploads/files/'),
|
|
],
|
|
|
|
'local_secure_images' => [
|
|
'driver' => 'local',
|
|
'root' => storage_path('uploads/images/'),
|
|
'visibility' => 'public',
|
|
],
|
|
|
|
's3' => [
|
|
'driver' => 's3',
|
|
'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'),
|
|
'endpoint' => env('STORAGE_S3_ENDPOINT', null),
|
|
'use_path_style_endpoint' => env('STORAGE_S3_ENDPOINT', null) !== null,
|
|
],
|
|
|
|
],
|
|
|
|
// Symbolic Links
|
|
// Here you may configure the symbolic links that will be created when the
|
|
// `storage:link` Artisan command is executed. The array keys should be
|
|
// the locations of the links and the values should be their targets.
|
|
'links' => [
|
|
public_path('storage') => storage_path('app/public'),
|
|
],
|
|
|
|
];
|