Skip to content

S3 file upload proxy using Nginx, complete with AWS authentication.

Notifications You must be signed in to change notification settings

ollamh/nginx-s3-upload

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nginx S3 File Upload Proxy

S3 file upload proxy using Nginx, complete with AWS authentication.

Installation

Create a .env file to hold your environment variables for Nginx. You can base on the .env.example file contained in root folder.

Using Docker, build the image.

$ docker build -t jamescmartinez/nginx-s3-upload .

After the image is built, create a container.

$ docker run -d -p 80:80 --env-file=.env jamescmartinez/nginx-s3-upload

Usage

Once the container is running, give it a try!

$ curl -T path/to/file/to/upload http://nginx-s3-upload.yourdomain.com/uploads/entity/property/filename.extension

The response will contain a header, X-File-URL, with the location of the file on your S3 bucket.

Contributing

Issue a pull request and I will love you forever.

License

nginx-s3-upload is released under the MIT license.

About

S3 file upload proxy using Nginx, complete with AWS authentication.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published