X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/eaa1765c7a68cd671bcb37a666203210bf05d217..refs/pull/435/head:/config/filesystems.php diff --git a/config/filesystems.php b/config/filesystems.php index 3fffcf0a2..836f68d3d 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -15,7 +15,18 @@ return [ | */ - 'default' => 'local', + 'default' => 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), /* |-------------------------------------------------------------------------- @@ -45,7 +56,7 @@ return [ 'local' => [ 'driver' => 'local', - 'root' => storage_path('app'), + 'root' => base_path(), ], 'ftp' => [ @@ -64,10 +75,10 @@ return [ 's3' => [ 'driver' => 's3', - 'key' => 'your-key', - 'secret' => 'your-secret', - 'region' => 'your-region', - 'bucket' => 'your-bucket', + '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'), ], 'rackspace' => [