Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Latest commit

 

History

History
31 lines (19 loc) · 1.01 KB

README.md

File metadata and controls

31 lines (19 loc) · 1.01 KB

nginx-s3-auth

A Docker container for proxying S3 buckets as websites w/ HTTP Basic Auth.

Usage

  1. docker build -t nginx-s3-auth .
  2. docker run -p 8000:8000 -e USERNAME=user -e PASSWORD=encrypted-password -e AWS_ACCESS_KEY=AKIA... -e AWS_SECRET_KEY=supersecret -e AUTH_REALM=my-site -e S3_BUCKET=my-bucket nginx-s3-auth

The encrypted-password is crypt() format and will go into the htpasswd file. It can be generated with Apache's htpasswd utility or openssl passwd among other methods.

Running in CoreOS

  1. script/build will generate a service unit file named [email protected]
  2. fleetctl submit [email protected]
  3. fleetctl start nginx-s3-auth@1 will run an instance of this in your cluster

Or you can run script/deploy after script/build which will submit and start 3 instances in whatever cluster your fleetctl config is pointing at.

Deployment

Automatic

Merges to master will automatically be deployed to production.

Manual

Standard fleetctl deployment is supported.