Sign inSign up

micahhausler/nginx-s3-proxy

By micahhausler

Updated over 10 years ago

An Nginx proxy for S3

Image
0

1.2K

micahhausler/nginx-s3-proxy repository overview

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

Tag summary

Content type

Image

Digest

Size

152.6 MB

Last updated

over 10 years ago

docker pull micahhausler/nginx-s3-proxy