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
- Host: GitHub
- URL: https://github.com/thomd/s3-proxy
- Owner: thomd
- Created: 2011-01-31T22:44:38.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2011-01-31T22:45:27.000Z (over 15 years ago)
- Last Synced: 2025-02-05T21:42:32.739Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 89.8 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
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