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

Enables Nextcloud data to be stored in S3 #2259

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mmeidlinger
Copy link
Contributor

Nextcloud can be configured to store data in Amazon S3. Externalizing nextcloud data to S3 can be activated by configuring environment variables prior to running the installer. Authentication for this feature works on EC2 instances through EC2 instance roles.

By decoupling data storage from the actual mail server instance, increases portability, availability and resiliency of the data, while at the same time reducing cost and increasing scalability.

@mmeidlinger
Copy link
Contributor Author

@JoshData Any feedback on this? I have used this setup for several years now without a problem. Thx.

@JoshData
Copy link
Member

This would have to be made more generic so that it's not specific to EC2 environment variables. And the Files app is not really a supported part of Mail-in-a-Box so I'm not inclined to take on the long-term burden of supporting this feature.

@mmeidlinger
Copy link
Contributor Author

mmeidlinger commented Feb 17, 2025

The setting is mostly useful in case your box sits on AWS next to the S3 bucket as request flow for Nextcloud data is like this:

              --->           ---->
client               box              S3
             <---            <---

Hence the assumption on AWS credentials being available through the environment / EC2 meta data sevice.
I also I wanted to have it as minimally intrusive to the overall setup as possible (not introducing new parameters for access keys / indicating to users this is supported) for the reasons you mentioned.

From my perspective, this is extremely useful for anyone wanting to run on AWS and use files to some extent. The change is minimal and non intrusive and it can be made clear that this is experimental / not supported. Similar to how people can use files easily if they wanted but they cannot expect it to be supported.

That being said, I appreciate it's your call to decide on this from a long term ownership perspective.

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.

2 participants