FeatureFuel
2

store s3 files under a subpath

Source: outline/outline#11817 · opened by @bmillwood-aisi
I'm trying to deploy self-hosted Outline in a context where I can't easily create new s3 buckets, but I do have access to an existing one. It would therefore be handy if I could get Outline to store its files in a subpath of the given bucket, instead of at the root. our friend Claude Opus suggests this is a low lift: > ~3 files, ~30-35 lines total, low risk. > > The key file is server/storage/files/S3Storage.ts — it has a handful of methods (store, deleteFile, getSignedUrl, getPresignedPost, moveFile, getFileStream, getFileExists) that each take a Key parameter. You'd add a private prefixKey(key) helper that prepends AWS_S3_KEY_PREFIX (with a trailing-slash trim), then call it in each of those spots. That's ~7 one-line substitutions plus the helper. > > The only slightly tricky bit is moveFile(), where the CopySource parameter includes the bucket name in the string (bucketname/key), so the prefix needs to go in the right place inside…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests