I want to serve downloadable files from S3 through Nginx to internal people.
I tried rufuspollock/s3-bucket-listing
, which worked perfectly. But it need bucket to be public. I don't want to make bucket public.
Is there any other way to do this possible ?
You can use both NGINX Open Source and NGINX Plus as the gateway to S3 or a compatible object store. To use NGINX Open Source, start with the official NGINX image from Docker Hub and the Dockerfile we provide on GitHub.
Large object size For very large Amazon S3 objects, you might notice slow download times as your web browser tries to download the entire object. Instead, try downloading large objects with a ranged GET request using the Amazon S3 API.
Reading objects without downloading them Similarly, if you want to upload and read small pieces of textual data such as quotes, tweets, or news articles, you can do that using the S3 resource method put(), as demonstrated in the example below (Gist).
This will not work the way you expect. Reason being the endpoints will return XML, so what you need is a web interface which then interfaces with S3 and provides you a folder like interface.
Below thread has a lot of interesting options you can explore
Directory Listing in S3 Static Website
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With