The project is in a healthy, maintained state
ActiveStorageBunny is a gem that integrates BunnyCDN storage services with Active Storage.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 6.0, < 8.0
 Project Readme

Active Storage Bunny

Bunny is a fast, powerful, cheap and reliable CDN service and offers a storage service that can be used to store files which is a great alternative to Amazon S3, Azure, and Google Cloud Storage.

Active Storage Bunny is a gem that integrates BunnyCDN Storage services with Active Storage. This gem acts as an adapter to add BunnyCDN as a service to Active Storage.

This uses BunnyStorage Client gem to interact with BunnyCDN storage services.

Gem Version

Table of Contents

  • Installation
  • Requirements
  • Configuration
  • Contributing
  • License

Installation

Add this line to your application's Gemfile:

gem 'active_storage_bunny'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install active_storage_bunny

Requirements

Configuration

Configure Active Storage to use the Bunny service by adding the following to your config/storage.yml:

bunny:
  service: Bunny
  access_key: <%= ENV['BUNNY_ACCESS_KEY'] %>
  api_key: <%= ENV['BUNNY_API_KEY'] %>
  storage_zone: <%= ENV['BUNNY_STORAGE_ZONE'] %>

Then, in your environment configuration file (e.g., config/environments/production.rb), set the Active Storage service:

config.active_storage.service = :bunny

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/rkwaap/active_storage_bunny

  1. Fork the repository.
  2. Create a new branch (git checkout -b my-new-feature).
  3. Commit your changes (git commit -am 'Add some feature').
  4. Push to the branch (git push origin my-new-feature).
  5. Create a new Pull Request.

License

The gem is available as open source under the terms of the MIT License.