Name: private_s3_httpd
Owner: BuzzFeed
Description: Private HTTP Server for Amazon S3 content
Created: 2016-05-18 19:25:24.0
Updated: 2016-05-18 22:39:51.0
Pushed: 2016-05-18 22:08:23.0
Homepage: null
Size: 10
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Private HTTP Server for Amazon S3 content.
Amazon S3 provides a public HTTP interface for accessing content, but what if you don't want publicly accessible files?
private_s3_httpd
exposes a private HTTP endpoint for an Amazon S3 bucket so you can controll access to the data. This is ideal for accessing S3 via HTTP api as a backend data service, or for local http browsing of a private s3 bucket, or for use behind another authentication service (like oauth2_proxy) to secure access.
e of ./private_s3_httpd:
ucket="": S3 bucket name
isten=":8080": address:port to listen on.
og-requests=true: log HTTP requests
Before using, ensure that you've configured credentials appropriately. The best way to configure credentials is to use the ~/.aws/credentials
file, which might look like:
ault]
access_key_id = AKID1234567890
secret_access_key = MY-SECRET-KEY
You can learn more about the credentials file from this blog post.
Alternatively, you can set the following environment variables:
ACCESS_KEY_ID=AKID1234567890
SECRET_ACCESS_KEY=MY-SECRET-KEY
This project uses gb the Go Build tool. To load vendored dependencies and compile run ./vendor.sh && gb build