Skip to content

Flexible Storage Backends

thurloat requested to merge thurloat/pleroma:backendhack into develop

literally hacked this together in 5 minutes (not working just for showing potential architecture), just want to start a discussion on how yall like to have this best implemented so there's not if s3, if swift, if b2 strewn around once multiple backends are done.

building on the work of !303 (merged) and works to put in a framework for finishing issue #65 (closed). Also includes a basic swift backend.

so, sup?

I've implemented the pluggable uploader backend model that I initially proposed.

  • test S3 support still works
  • write some more documentation / samples
  • add a generic backend failure handler put_file/5 should have a {:ok | :error, path :: String.t()} return
Edited by thurloat

Merge request reports