馃殌 [Feature] Upload image files to S3 compatible object storage
Created by: Tirokk
Authored by roschaefer Closed
馃殌 Feature
We would like to store image file on Digital Spaces or any other S3 compatible object storage.
User Problem
Currently we save images in a kubernetes volume. This creates issues:
- We cannot scale the backend on Digital Ocean as they don't support multi-read-write access
- It's more expensive than a simple object storage
- It creates unnecessary load on our backend
Implementation
We need to create a migration which bulk uploads the image files which can be referenced by URLs saved in our database (user avatars, post hero images). The image URLs in the database need to be updated accordingly.
Validation
A request for an image file should not hit the kubernetes cluster anymore.