From a6228ffce768e2bb0e455c627632a413c4f3b380 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 12 Jan 2019 01:09:29 -0700 Subject: [PATCH] Add spaces filesystem driver --- config/filesystems.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/config/filesystems.php b/config/filesystems.php index cc6157b23..1f8d84cc2 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -65,6 +65,21 @@ return [ 'endpoint' => env('AWS_ENDPOINT'), ], + 'spaces' => [ + 'driver' => 's3', + 'key' => env('DO_SPACES_KEY'), + 'secret' => env('DO_SPACES_SECRET'), + 'endpoint' => env('DO_SPACES_ENDPOINT'), + 'region' => env('DO_SPACES_REGION'), + 'bucket' => env('DO_SPACES_BUCKET'), + 'visibility' => 'public', + 'options' => [ + 'CacheControl' => 'max-age=31536000' + ], + 'root' => env('DO_SPACES_ROOT','/'), + 'url' => str_replace(env('DO_SPACES_REGION'),env('DO_SPACES_BUCKET').'.'.env('DO_SPACES_REGION'),str_replace("digitaloceanspaces","cdn.digitaloceanspaces",env('DO_SPACES_ENDPOINT'))), + ], + ], ];