Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add S3_KEY_PREFIX environment variable #30181

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

S0yKaf
Copy link

@S0yKaf S0yKaf commented May 5, 2024

Solution to #16320 and #27904

Adds the S3_KEY_PREFIX environment variable that enables you to prefix your object keys with the specified path.
This feature is useful for those who wish to host multiple mastodon instances on the same bucket.

Some object storage services like Backblaze only allow you to have 100 buckets associated with your account.
This becomes problematic for hosting providers or people who use a large amount of buckets.

This variable creates an easy solution to this problem and brings functionalities similar to PAPERCLIP_ROOT_URL to people using object storage.

Other fediverse applications already support this feature:

I tried my best to follow the coding conventions, but I apologies if missed anything. I am not a ruby dev.

ClearlyClaire
ClearlyClaire previously approved these changes May 7, 2024
Copy link
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

Copy link
Contributor

This pull request has resolved merge conflicts and is ready for review.

@S0yKaf S0yKaf requested a review from ClearlyClaire May 30, 2024 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants