mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Add spaces filesystem driver
This commit is contained in:
parent
7fcb1186d9
commit
a6228ffce7
1 changed files with 15 additions and 0 deletions
|
@ -65,6 +65,21 @@ return [
|
||||||
'endpoint' => env('AWS_ENDPOINT'),
|
'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'))),
|
||||||
|
],
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue