S3Proxy - simple rack app, proxies to Amazon S3
Features
- Simple Rack application that proxies GET requests to Amazon S3
- Rack Hijacking support
Installation
Add this line to your application's Gemfile:
gem 's3_proxy'
And then execute:
$ bundle
Or install it yourself as:
$ gem install s3_proxy
Usage
config.ru
require 's3_proxy'
run S3Proxy::App.new
# you can pass option to Aws::S3.new
run S3Proxy::App.new(credentials: Aws::InstanceProfileCredentials.new)
requesting
$ curl http://app/foo/bar
(returns key `bar` in bucket named `foo`)
Contributing
- Fork it ( https://github.com/[my-github-username]/s3_proxy/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request