Skip to content

sj26/rack-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Packages

No packages published

Languages