diff --git a/.env.example b/.env.example index 4300c9d4..02edf84c 100644 --- a/.env.example +++ b/.env.example @@ -86,6 +86,13 @@ R2_REGION=auto R2_BUCKET= R2_URL= +# DigitalOcean Spaces (set FILESYSTEM_DISK=spaces) +SPACES_ACCESS_KEY_ID= +SPACES_SECRET_ACCESS_KEY= +SPACES_ENDPOINT= +SPACES_REGION= +SPACES_BUCKET= + # ============================================ # Social Platform Credentials # ============================================ diff --git a/config/filesystems.php b/config/filesystems.php index 8c1fd705..f81877c9 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -15,7 +15,7 @@ | */ - 'default' => env('FILESYSTEM_DISK', 'r2'), + 'default' => env('FILESYSTEM_DISK', 'public'), /* |-------------------------------------------------------------------------- @@ -62,6 +62,16 @@ 'report' => false, ], + 'spaces' => [ + 'driver' => 's3', + 'key' => env('SPACES_ACCESS_KEY_ID'), + 'secret' => env('SPACES_SECRET_ACCESS_KEY'), + 'endpoint' => env('SPACES_ENDPOINT'), + 'region' => env('SPACES_REGION'), + 'bucket' => env('SPACES_BUCKET'), + 'throw' => true, + ], + 'r2' => [ 'driver' => 's3', 'key' => env('R2_ACCESS_KEY_ID'),