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.
Comments
Similar requests
Support serving Outline from a subpath
1 vote · 0 comments
Add folder / folder structure
7 votes · 0 comments
MCP — support end-to-end attachment upload (not just presign) so clients don't need a separate API key
1 vote · 0 comments
Add Parsers for CodeBlock for more use in CyberSecurity Sector
2 votes · 0 comments
Encrypt text in Outline
3 votes · 0 comments
No comments yet.