Skip to content

michelada/active_storage_proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ActiveStorageProxy

Engine for adding support to ActiveStorage based on this gist

Usage

rails_proxy_blob_url(signed_id: attachment.signed_id, filename: attachment.filename)`
variant = attachment.variant(:medium)
rails_proxy_blob_url(signed_id: attachment.signed_id, variation_key: variant.variation.key, filename: variant.filename)

Installation

Add this line to your application's Gemfile:

gem "active_storage_proxy", github: "michelada/active_storage_proxy"

And then execute:

$ bundle
# config/environments/production.rb
config.active_storage_proxy.proxy_urls_expire_in = 1.year
config.active_storage_proxy.proxy_urls_public = true

Contributing

Contribution directions go here.

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published