Project

rack-s3

0.01
No commit activity in last 3 years
No release in over 3 years
Serve static files from S3 via Rack
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0

Runtime

 Project Readme

Rack S3

Expose an S3 bucket prefix as a Rack application with streaming.

Usage

Specify an S3 URI to mount a bucket and optional prefix:

# config.ru

run Rack::S3.new("s3://my-bucket/assets")

or, with options:

# config.ru

run Rack::S3.new(bucket: "my-app", prefix: "assets", client: Aws::S3::Client.new(...))

It'll look for "index.html" files at the root, or at a url ending with a slash.