diff --git a/.env.example b/.env.example index 2d45ff580e..4bb99ed728 100644 --- a/.env.example +++ b/.env.example @@ -127,6 +127,17 @@ PUBLIC_AWS_BUCKET=null PUBLIC_AWS_URL=null PUBLIC_AWS_BUCKET_ROOT=null + +# -------------------------------------------- +# OPTIONAL: Digital Ocean Spaces File Settings +# -------------------------------------------- +DIGITALOCEAN_SPACES_KEY=null +DIGITALOCEAN_SPACES_SECRET=null +DIGITALOCEAN_SPACES_ENDPOINT=https://region.digitaloceanspaces.com +DIGITALOCEAN_SPACES_REGION=null +DIGITALOCEAN_SPACES_BUCKET=null + + # -------------------------------------------- # OPTIONAL: PRIVATE S3 Settings # -------------------------------------------- diff --git a/config/filesystems.php b/config/filesystems.php index 50b2675589..9988cdc072 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -82,6 +82,15 @@ $config = [ 'visibility' => 'private' ], + 'digitalocean' => [ + 'driver' => 's3', 'key' => env('DIGITALOCEAN_SPACES_KEY'), + 'secret' => env('DIGITALOCEAN_SPACES_SECRET'), + 'endpoint' => env('DIGITALOCEAN_SPACES_ENDPOINT'), + 'region' => env('DIGITALOCEAN_SPACES_REGION'), + 'bucket' => env('DIGITALOCEAN_SPACES_BUCKET'), + ], + + 'rackspace' => [ 'driver' => 'rackspace', 'username' => env('RACKSPACE_USERNAME'),