Skip to content

nginx compiled with aws-auth support, suitable for S3 reverse proxy usage

License

Notifications You must be signed in to change notification settings

commonsearch/nginx-s3-proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nginx-s3-proxy

Motivation

This image was created to securely proxy requests to S3. It uses confd to update the nginx configuration and then starts nginx. You'll need to run your container with the following environment variables:

CACHE_TIME
SERVER_NAME
S3_BUCKET
REGION
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY

Usage

You can run it using a docker-compose like this:

version: '2'
services:
  s3proxy:
    cpu_shares: 512
    mem_limit: 128m
    build: ./
    environment:
      CACHE_TIME: "10m"
      SERVER_NAME: "s3proxy.example.com"
      S3_BUCKET: "your-conf-data"
      REGION: "us-west-2"
      AWS_ACCESS_KEY_ID: "<some-access-key>"
      AWS_SECRET_ACCESS_KEY: "<some-secret-key>"
    ports:
      - "8080:80"

License

MIT

About

nginx compiled with aws-auth support, suitable for S3 reverse proxy usage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Nginx 100.0%