From ed83b44acdd01c78c913b61db0811cb5a6417d49 Mon Sep 17 00:00:00 2001 From: Milos Stojanovic Date: Mon, 24 Jun 2019 16:11:19 +0200 Subject: [PATCH] Website generation with Couscous --- configuration/storage.html | 27 ++++++++++++++++++++++++++- index.html | 2 +- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/configuration/storage.html b/configuration/storage.html index d9d570f..ffcc40c 100644 --- a/configuration/storage.html +++ b/configuration/storage.html @@ -126,7 +126,7 @@

Adapters

Different storage adapters are provided through the awesome 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 for the exact setup required for each adapter.

Default Local Disk Adapter

With default adapter you just need to configure where your repository folder is. This folder will serve as a root for everything else.

@@ -224,6 +224,31 @@ ], ], +

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

+
        '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');
+                },
+            ],
+        ],
+
diff --git a/index.html b/index.html index 318a0a2..5c0ce49 100644 --- a/index.html +++ b/index.html @@ -137,7 +137,7 @@

File upload supports drag&drop, progress bar, pause and resume. Upload is chunked so you should be able to upload large files regardless of your server's configuration.

Features & Goals