Nginx to serve downloadable S3 files
Asked Answered
F

1

6

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 ?

Fransiscafransisco answered 10/7, 2019 at 17:16 Comment(6)
Tried setting the autoindex on inside the location / {} block?Kosygin
already tried that, no change in output.Fransiscafransisco
So you want to do this without downloading the files?Vanir
I want to download it through Nginx.Fransiscafransisco
@roy, any update on this?Vanir
Nope, I manage to do it by mounting the s3 bucket on EC2 and serving those files via Nginx.Fransiscafransisco
V
2

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

Vanir answered 19/7, 2019 at 18:22 Comment(2)
This required bucket to be public. I want to use private bucket to server downloaded files to internal people.Fransiscafransisco
Did you see this? github.com/powdahound/s3browser. Looking at the config it supports private bucketsVanir

© 2022 - 2024 — McMap. All rights reserved.