setup filesystem config

This commit is contained in:
2023-11-29 18:39:14 +10:00
committed by GitHub
parent 7599291257
commit 2d6759e668

View File

@@ -13,7 +13,7 @@ return [
| |
*/ */
'default' => env('FILESYSTEM_DISK', 'local'), 'default' => env('FILESYSTEM_DISK', 'media'),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@@ -30,43 +30,10 @@ return [
'disks' => [ 'disks' => [
'local' => [ 'media' => [
'driver' => 'local', 'driver' => 'local',
'root' => storage_path('app/public'), 'root' => '/mnt/media',
'url' => env('APP_URL') . "/storage/{name}", 'public' => false,
'public' => true,
'throw' => false,
],
'cdn' => [
'driver' => 's3',
'key' => env('AWS_PUBLIC_ACCESS_KEY_ID'),
'secret' => env('AWS_PUBLIC_SECRET_ACCESS_KEY'),
'region' => env('AWS_PUBLIC_DEFAULT_REGION'),
'bucket' => env('AWS_PUBLIC_BUCKET'),
'url' => env('AWS_PUBLIC_URL') . '/{name}',
'endpoint' => env('AWS_PUBLIC_ENDPOINT'),
'use_path_style_endpoint' => env('AWS_PUBLIC_USE_PATH_STYLE_ENDPOINT', false),
'throw' => false,
'public' => true,
'options' => [
'ACL' => '',
]
],
'private' => [
'driver' => 'local',
'root' => storage_path('app/private'),
'url' => env('APP_URL_API') . '/media/{id}/download',
'visibility' => 'private',
'throw' => false,
],
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL') . '/storage/{name}',
'visibility' => 'public',
'throw' => false, 'throw' => false,
], ],
], ],
@@ -83,7 +50,7 @@ return [
*/ */
'links' => [ 'links' => [
public_path('storage') => storage_path('app/public'), // public_path('storage') => storage_path('app/public'),
], ],
]; ];