You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -194,6 +194,60 @@ new S3Adapter(accessKey, secretKey, bucket, options)
194
194
| baseUrlDirect | Key in `options`. Is `true` if the file adapter should ignore the bucket prefix when determining the file location for direct access. | Optional. Default: `false`. To be used when `directAccess=true` and `baseUrl` is set. When set to `true`, the file adapter returns a file URL in format `baseUrl/filename`. Example for `baseUrl='http://domain.com/folder'` and `baseUrlDirect=true` the returned file location is `http://domain.com/folder/file.txt`. |
195
195
| globalCacheControl | Key in `options`. The `Cache-Control` http header to set in the file request. | Optional. Default: `null`. Example: `public, max-age=86400` for 24 hrs caching. More info [here](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.1). |
196
196
197
+
### S3-compatible Services
198
+
#### Digital Ocean Spaces
199
+
200
+
[Digital Ocean Spaces](https://try.digitalocean.com/cloud-storage) is an S3-compatible storage service in the cloud. See their [documentation](https://docs.digitalocean.com/products/spaces/) for more details.
201
+
202
+
```javascript
203
+
consts3Options= {
204
+
bucket:"SPACES_BUCKET_NAME",
205
+
baseUrl:"SPACES_BASE_URL",
206
+
region:"SPACES_REGION",
207
+
bucketPrefix:"SPACES_BUCKET_PREFIX",
208
+
s3overrides: {
209
+
accessKeyId:"SPACES_ACCESS_KEY",
210
+
secretAccessKey:"SPACES_SECRET_KEY",
211
+
endpoint:'SPACES_ENDPOINT'
212
+
}
213
+
};
214
+
```
215
+
216
+
#### Linode Object Storage
217
+
218
+
[Linode Object Storage](https://www.linode.com/products/object-storage/) is an S3-compatible storage service in the cloud. See their [documentation](https://www.linode.com/docs/guides/how-to-use-object-storage/) for more details.
[Backblaze B2 Cloud Storage](https://www.backblaze.com/b2/cloud-storage.html) is an S3-compatible storage service in the cloud. See their [documentation](https://www.backblaze.com/b2/docs/) for more details.
236
+
237
+
```js
238
+
consts3Options= {
239
+
bucket:"S3_BUCKET",
240
+
baseUrl:"S3_BASE_URL", // taken from BackBlaze, normally https://BUCKET.s3.REGION.backblazeb2.com
0 commit comments