feat: add S3-compatible storage provider#1660
Draft
onyedikachi-david wants to merge 2 commits into
Draft
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Contributor
Author
|
this PR is ready for review but I can't remove from draft @egelhaus |
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.
What kind of change does this PR introduce?
Feature.
Adds AWS S3 and S3-compatible storage provider support, including MinIO-compatible endpoint configuration.
Why was this change needed?
Fixes #1124.
Postiz already supports local and Cloudflare R2 storage, but self-hosted deployments may use AWS S3 or S3-compatible providers such as MinIO, DigitalOcean Spaces, or Backblaze B2. This change adds an
s3storage provider so those deployments can upload, save, preview, and serve media through S3-compatible object storage.This PR adds:
S3_ENDPOINTsupport with path-style requests for MinIO/S3-compatible providers.STORAGE_PROVIDER=s3uses S3 upload and preview URLs..env.example.Other information:
Validated locally with AWS S3 media uploads and preview rendering.
Checklist: