How to connect ActiveStorage to S3 compatible API?

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:

  service: S3
  access_key_id: ...
  secret_access_key: ...
  # ...and other options

Thanks @georgeclaghorn, I’v’ proposed a doc update: