Skip to content

Latest commit

 

History

5 提交

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

仓库 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

关于

A Corset for fonts on S3

Resources

Stars

7 stars

关注者

0 watching

复刻s

发布

Used by

贡献者

Languages