feat(ExternalStorage) Allow the use of 'prefix' in S3 buckets#15222
Open
mbartsch wants to merge 1 commit into
Open
feat(ExternalStorage) Allow the use of 'prefix' in S3 buckets#15222mbartsch wants to merge 1 commit into
mbartsch wants to merge 1 commit into
Conversation
Signed-off-by: Marcelo H. Bartsch <marcelo@bartsch.cl>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
☑️ Resolves
🖼️ Screenshots
Before — no prefix field mentioned in the S3 external storage documentation.
After — new section between the Bucket and Access key fields:
In the Bucket field enter your S3 bucket name. [...]
The optional Object key prefix field scopes the mount to a sub-path within
the bucket rather than using the entire bucket. For example, setting the prefix
to
nextcloud/will store all files under thenextcloud/key namespaceinside the bucket, leaving the rest of the bucket untouched. This is useful
when a bucket is shared between multiple services or Nextcloud instances.
.. note::
The prefix is automatically normalized: leading slashes are stripped and a
trailing slash is always added.
myapp,myapp/, and/myapp/areall equivalent.
.. tip::
The
$userplaceholder is supported in the prefix field and is substitutedwith the Nextcloud username at mount time. For example, setting the prefix to
nextcloud/$user/will store each user's files under their own namespace(e.g.
nextcloud/alice/for useralice). This is particularly usefulfor global mounts shared across all users.
In the Access key field enter your S3 access key ID.
✅ Checklist
Assisted-by: CloudeCode:claude-sonnet-4-6