Skip to content

💻 This helps in setting up a proxy server for your public AWS s3 bucket. This helps you hide the sensitive information of your bucket region and bucket name. This also helps in caching the result data.

License

Notifications You must be signed in to change notification settings

cosmos-sajal/s3_nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nginx as a proxy server for your public s3 buckets

How to setup?

Changes required in default.conf
  • Change base_s3_url to your something like - s3-ap-south-1.amazonaws.com, which points to your region where the bucket is situated.
  • Change bucket_name to the name of your bucket.
How to create a container for the same?
  • Run docker build -t mynginx_image1 . in the root of the directory. (This will create an image for the nginx).
  • Run docker run --name mynginx1 -p 80:80 -d mynginx_image1, this will run the docker container in the detached mode, and you are done.

Example

  • If your s3 uploaded file was earlier directed as https://s3-ap-south-1.amazonaws.com/demo_bucket/image1.png, now it can be proxy passed as localhost/image1.png.
  • You can change the server as per your domain.

References

About

💻 This helps in setting up a proxy server for your public AWS s3 bucket. This helps you hide the sensitive information of your bucket region and bucket name. This also helps in caching the result data.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published