Skip to content

Latest commit

 

History

30 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Rack::Static like middleware for serving assets from S3

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages