Skip to content

Looking for co-committers. Pls reach out. Activestorage (rails 6) gem for using backblaze b2 as the storage (just like aws s3 etc)

Notifications You must be signed in to change notification settings

jeygeethan/activestorage-backblaze

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is a gem for using backblaze with activestorage.

Note:

Since this was created before backblaze supported S3 apis, this gem was relevant back then. But now you can directly use the S3 endpoints with Backblaze B2 and skip this gem

Readmore: #4

Usage:

gem 'activestorage-backblaze'

Then in your storage.yml, use the following

backblaze:
  service: Backblaze
  bucket_name: <bucket_name>
  bucket_id: <bucket_id>
  key_id: <keyId>
  key_token: <keyToken>

In your environments/production.rb or application.rb (depending on your choice) add the following:

config.active_storage.service = :backblaze

Javascript Usage

Corresponding git repos

https://github.com/jeygeethan/actiontext-backblaze https://github.com/jeygeethan/activestorage-backblaze-javascript

Add this to your package.json

"@jeygeethan/actiontext-backblaze": "^6.1.3-alpha"

This includes the activestorage-backblaze npm package as a dependency. Javascript is needed for direct uploads and use in Trix editor.

About

Looking for co-committers. Pls reach out. Activestorage (rails 6) gem for using backblaze b2 as the storage (just like aws s3 etc)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages