Skip to content

max/corset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Corset

A simple ruby gem to set the right CORS configuration for an S3 bucket.

Installation

$ gem install corset

Usage

Create a .env file with:

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • FOG_DIRECTORY (the S3 bucket name)
  • AWS_CORS_ALLOWED_ORIGIN (the allowed origin)

Note that you can't use * as the allowed origin if you plan on distributing the bucket via Cloudfront. Currently Cloudfront caches the origin of the first request.

Then run:

$ export $(cat .env) && corset set

About

A Corset for fonts on S3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages