mirror of
https://github.com/filegator/filegator.git
synced 2025-07-31 21:20:18 +02:00
DigitalOcean Spaces docs
This commit is contained in:
@@ -37,7 +37,7 @@ This is read-only demo with guest account enabled.
|
||||
|
||||
|
||||
## Features & Goals
|
||||
- Multiple storage adapters (Local, FTP, S3, Dropbox and many others via [Flysystem](https://github.com/thephpleague/flysystem))
|
||||
- Multiple storage adapters (Local, FTP, Amazon S3, Dropbox and many others via [Flysystem](https://github.com/thephpleague/flysystem))
|
||||
- Multiple auth adapters with roles and permissions (Store users in json file or database)
|
||||
- Multiple session adapters (Native File, Pdo, MongoDB, Memcached and others via [Symfony](https://github.com/symfony/symfony/tree/master/src/Symfony/Component/HttpFoundation/Session/Storage/Handler))
|
||||
- Single page front-end (built with [Vuejs](https://github.com/vuejs/vue), [Bulma](https://github.com/jgthms/bulma) and [Buefy](https://github.com/buefy/buefy))
|
||||
|
@@ -5,7 +5,7 @@ currentMenu: storage
|
||||
## Adapters
|
||||
Different storage adapters are provided through the awesome [Flysystem](https://github.com/thephpleague/flysystem) library.
|
||||
|
||||
You can use local filesystem (default), FTP, S3, Dropbox and many others.
|
||||
You can use local filesystem (default), FTP, Amazon S3, DigitalOcean Spaces, Dropbox and many others.
|
||||
|
||||
Please check the Flysystem [docs](https://github.com/thephpleague/flysystem) for the exact setup required for each adapter.
|
||||
|
||||
@@ -126,3 +126,34 @@ See official [documentation](https://flysystem.thephpleague.com/docs/adapter/aws
|
||||
],
|
||||
|
||||
```
|
||||
|
||||
## DigitalOcean Spaces
|
||||
You must require additional library `composer require league/flysystem-aws-s3-v3`
|
||||
|
||||
The DigitalOcean Spaces API are compatible with those of S3.
|
||||
|
||||
See official [documentation](https://flysystem.thephpleague.com/docs/adapter/digitalocean-spaces/)
|
||||
|
||||
```
|
||||
'Filegator\Services\Storage\Filesystem' => [
|
||||
'handler' => '\Filegator\Services\Storage\Filesystem',
|
||||
'config' => [
|
||||
'separator' => '/',
|
||||
'config' => [],
|
||||
'adapter' => function () {
|
||||
$client = new \Aws\S3\S3Client([
|
||||
'credentials' => [
|
||||
'key' => '123456',
|
||||
'secret' => 'secret123456',
|
||||
],
|
||||
'region' => 'us-east-1',
|
||||
'version' => 'latest',
|
||||
'endpoint' => 'https://nyc3.digitaloceanspaces.com',
|
||||
]);
|
||||
|
||||
return new \League\Flysystem\AwsS3v3\AwsS3Adapter($client, 'my-bucket-name');
|
||||
},
|
||||
],
|
||||
],
|
||||
|
||||
```
|
||||
|
@@ -20,7 +20,7 @@ File upload supports drag&drop, progress bar, pause and resume. Upload is chunke
|
||||
|
||||
|
||||
## Features & Goals
|
||||
- Multiple storage adapters (Local, FTP, S3, Dropbox and many others via [Flysystem](https://github.com/thephpleague/flysystem))
|
||||
- Multiple storage adapters (Local, FTP, Amazon S3, Dropbox and many others via [Flysystem](https://github.com/thephpleague/flysystem))
|
||||
- Multiple auth adapters with roles and permissions (Store users in json file or database)
|
||||
- Multiple session adapters (Native File, Pdo, MongoDB, Memcached and others via [Symfony](https://github.com/symfony/symfony/tree/master/src/Symfony/Component/HttpFoundation/Session/Storage/Handler))
|
||||
- Single page front-end (built with [Vuejs](https://github.com/vuejs/vue), [Bulma](https://github.com/jgthms/bulma) and [Buefy](https://github.com/buefy/buefy))
|
||||
|
Reference in New Issue
Block a user