Skip to content

Commit 040b741

Browse files
committed
allow setting s3 concurrency, proxy, timeout, uploadPartSize, putSizeLimit, version, and verify_bucket_exists
Signed-off-by: jessebot <[email protected]>
1 parent 65138b6 commit 040b741

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
@@ -192,6 +192,13 @@ To use an external S3 compatible object store as primary storage, set the follow
192192
- `OBJECTSTORE_S3_OBJECT_PREFIX` (default: `urn:oid:`): Prefix to prepend to the fileid
193193
- `OBJECTSTORE_S3_AUTOCREATE` (default: `true`): Create the container if it does not exist
194194
- `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)
195+
- `OBJECTSTORE_S3_CONCURRENCY` (default: `5`) defines the maximum number of concurrent multipart uploads
196+
- `OBJECTSTORE_S3_PROXY` (default: `false`)
197+
- `OBJECTSTORE_S3_TIMEOUT` (default: `15`)
198+
- `OBJECTSTORE_S3_UPLOADPARTSIZE` (default: `524288000`)
199+
- `OBJECTSTORE_S3_PUTSIZELIMIT` (default: `104857600`)
200+
- `OBJECTSTORE_S3_VERSION` (default: `latest`)
201+
- `OBJECTSTORE_S3_VERIFY_BUCKET_EXISTS` (default: `true`)
195202

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

0 commit comments

Comments
 (0)