Skip to content

Commit 782bccf

Browse files
committed
allow setting s3 concurrency, proxy, timeout, uploadPartSize, putSizeLimit, version, and verify_bucket_exists
Signed-off-by: jessebot <[email protected]>
1 parent 2f4de23 commit 782bccf

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.config/s3.config.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,14 @@
1919
// required for some non Amazon S3 implementations
2020
'use_path_style' => $use_path == true && strtolower($use_path) !== 'false',
2121
// required for older protocol versions
22-
'legacy_auth' => $use_legacyauth == true && strtolower($use_legacyauth) !== 'false'
22+
'legacy_auth' => $use_legacyauth == true && strtolower($use_legacyauth) !== 'false',
23+
'concurrency' => getenv('OBJECTSTORE_S3_CONCURRENCY') ?: 5,
24+
'proxy' => getenv('OBJECTSTORE_S3_PROXY') ?: false,
25+
'timeout' => getenv('OBJECTSTORE_S3_TIMEOUT') ?: 15,
26+
'uploadPartSize' => getenv('OBJECTSTORE_S3_UPLOADPARTSIZE') ?: 524288000,
27+
'putSizeLimit' => getenv('OBJECTSTORE_S3_PUTSIZELIMIT') ?: 104857600,
28+
'version' => getenv('OBJECTSTORE_S3_VERSION') ?: "latest",
29+
'verify_bucket_exists' => getenv('OBJECTSTORE_S3_VERIFY_BUCKET_EXISTS') ?: true
2330
)
2431
)
2532
);

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,13 @@ To use an external S3 compatible object store as primary storage, set the follow
276276
- `OBJECTSTORE_S3_OBJECT_PREFIX` (default: `urn:oid:`): Prefix to prepend to the fileid
277277
- `OBJECTSTORE_S3_AUTOCREATE` (default: `true`): Create the container if it does not exist
278278
- `OBJECTSTORE_S3_SSE_C_KEY` (not set by default): Base64 encoded key with a maximum length of 32 bytes for server side encryption (SSE-C)
279+
- `OBJECTSTORE_S3_CONCURRENCY` (default: `5`) defines the maximum number of concurrent multipart uploads
280+
- `OBJECTSTORE_S3_PROXY` (default: `false`)
281+
- `OBJECTSTORE_S3_TIMEOUT` (default: `15`)
282+
- `OBJECTSTORE_S3_UPLOADPARTSIZE` (default: `524288000`)
283+
- `OBJECTSTORE_S3_PUTSIZELIMIT` (default: `104857600`)
284+
- `OBJECTSTORE_S3_VERSION` (default: `latest`)
285+
- `OBJECTSTORE_S3_VERIFY_BUCKET_EXISTS` (default: `true`)
279286

280287
Check the [Nextcloud documentation](https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/primary_storage.html#simple-storage-service-s3) for more information.
281288

0 commit comments

Comments
 (0)