Naive support for Digital Ocean spaces

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-12-01 14:17:47 +00:00
parent 5730518fc6
commit 1e150e2683
2 changed files with 20 additions and 0 deletions

View file

@ -127,6 +127,17 @@ PUBLIC_AWS_BUCKET=null
PUBLIC_AWS_URL=null PUBLIC_AWS_URL=null
PUBLIC_AWS_BUCKET_ROOT=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 # OPTIONAL: PRIVATE S3 Settings
# -------------------------------------------- # --------------------------------------------

View file

@ -82,6 +82,15 @@ $config = [
'visibility' => 'private' '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' => [ 'rackspace' => [
'driver' => 'rackspace', 'driver' => 'rackspace',
'username' => env('RACKSPACE_USERNAME'), 'username' => env('RACKSPACE_USERNAME'),