There are more and more storage solutions out there, such as Backblaze B2 starting today, 1&1 Ionos, and others which expose “S3 Compatible APIs”. How can these be integrated with ActiveStorage? It seems that ActiveStorage only supports AWS S3 but not S3-compatible services, is that correct?
You can provide a custom endpoint to Active Storage’s S3 service. For example, in config/storage.yml
:
production:
service: S3
endpoint: https://nyc3.digitaloceanspaces.com
access_key_id: ...
secret_access_key: ...
# ...and other options
3 Likes
Thanks @georgeclaghorn, I’v’ proposed a doc update: https://github.com/rails/rails/pull/39151