+
Skip to content

sebringj/siggy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

siggy

Simple S3-compatible signing of a URL to enable uploads via client-side.

TODO: will integrate in with JWT token permission as a microservice

Requirement

  1. Get your S3 account with the key, secret and bucket

  2. Your S3 bucket needs CORS setup with following XML entry:

    <?xml version="1.0" encoding="UTF-8"?> <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <CORSRule> <AllowedOrigin></AllowedOrigin> <AllowedMethod>GET</AllowedMethod> <AllowedMethod>POST</AllowedMethod> <AllowedMethod>PUT</AllowedMethod> <AllowedHeader></AllowedHeader> </CORSRule> </CORSConfiguration>

Start up

$ export AWS_ACCESS_KEY = '[your access key]'
$ export AWS_SECRET_KEY = '[your secret]'
$ export S3_BUCKET = '[your bucket]'
(optional but defaults to)
$ export S3_HOSTNAME = 's3.amazonaws.com'
$ node index.js

About

microservice for signing S3 uploads

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载