An open API service indexing awesome lists of open source software.

https://github.com/thomd/s3-proxy

S3-Proxy is a poor man's HTTP Proxy for static web-resources stored on Amazon(tm) S3
https://github.com/thomd/s3-proxy

Last synced: 8 months ago
JSON representation

S3-Proxy is a poor man's HTTP Proxy for static web-resources stored on Amazon(tm) S3

Awesome Lists containing this project

README

          

h1. S3-Proxy is a poor man's HTTP Proxy for static web-resources stored on Amazon(tm) S3.

h2. Features

* rack/sinatra-based application
* Add a Access-Control-Allow-Origin header to your font file response (to enable cross-site web font embedding in Firefox).
* gzip fonts (to make FOUC shorter).
* set of HTTP caching header.
* caching via Rack::Cache / Memcached (to reduce s3 costs). -- TODO
* do referrer-checks via whitelist of allowed referrers. -- TODO
* secured web-frontend -- TODO
** current configuration
** referrer whitelist
** set caching TTL
* counter (WTF? -- what is this good for except big brothering?)
* capistrano deployment on Dreamhost
* rspec tests

h2. Installation

set environment variable @S3_BUCKET@, @S3_ACAO@ ("Access-Control-Allow-Origin" HTTP-Header) and do a rackup:

bc. export S3_BUCKET=".s3.amazonaws.com"
export S3_ACAO=""
rackup

h2. Colophon

This is inspired by / forked from "fistface":https://github.com/thoughtbot/fistface