]> BookStack Code Mirror - bookstack/blobdiff - app/Config/filesystems.php
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / app / Config / filesystems.php
index 95fc35c2a8c0b702ee2cc8743a39425f9416b369..ab73fec29682f070a3ae35a1a1ba7f4d844a9353 100644 (file)
@@ -25,21 +25,30 @@ return [
     // file storage service, such as s3, to store publicly accessible assets.
     'url' => env('STORAGE_URL', false),
 
-    // Default Cloud Filesystem Disk
-    'cloud' => 's3',
-
     // Available filesystem disks
     // Only local, local_secure & s3 are supported by BookStack
     'disks' => [
 
         'local' => [
-            'driver' => 'local',
-            'root'   => public_path(),
+            'driver'     => 'local',
+            'root'       => public_path(),
+            'serve'      => false,
+            'throw'      => true,
+            'directory_visibility' => 'public',
         ],
 
-        'local_secure' => [
+        'local_secure_attachments' => [
             'driver' => 'local',
-            'root'   => storage_path(),
+            'root'   => storage_path('uploads/files/'),
+            'serve'  => false,
+            'throw'  => true,
+        ],
+
+        'local_secure_images' => [
+            'driver'     => 'local',
+            'root'       => storage_path('uploads/images/'),
+            'serve'      => false,
+            'throw'      => true,
         ],
 
         's3' => [
@@ -50,8 +59,18 @@ return [
             'bucket'                  => env('STORAGE_S3_BUCKET', 'your-bucket'),
             'endpoint'                => env('STORAGE_S3_ENDPOINT', null),
             'use_path_style_endpoint' => env('STORAGE_S3_ENDPOINT', null) !== null,
+            'throw'                   => true,
+            'stream_reads'            => false,
         ],
 
     ],
 
+    // 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'),
+    ],
+
 ];