aws-s3-proxy icon indicating copy to clipboard operation
aws-s3-proxy copied to clipboard

Display INDEX_DOCUMENT if exists and DIRECTORY_LISTINGS=true

Open EvgeniGordeev opened this issue 4 years ago • 2 comments

Feature or enhancement request

It's a feature enhancement to display folder content or index.html if exists. New variable DIRECTORY_LISTINGS_CHECK_INDEX is introduced to control the behavior.

Given s3 bucket content:

├── folder
├── ── subfolder1
│   └────  index.html
├── ── subfolder2
│   └────  index.html
└── index.html

Desired result if DIRECTORY_LISTINGS=true and DIRECTORY_LISTINGS_CHECK_INDEX=true: GET / returns /index.html content GET /folder/ returns list of folders - [subfolder1, subfolder2] GET /folder/subfolder1 returns /folder/subfolder1/index.html content GET /folder/subfolder2 returns /folder/subfolder2/index.html content

EvgeniGordeev avatar Apr 15 '20 21:04 EvgeniGordeev

This would be nice indeed! @pottava Would it be possible to merge this feature?

hverlin avatar Jan 22 '21 08:01 hverlin

This is a very useful enhancement, @pottava pls consider to merge it!

tillkuhn avatar Jun 11 '21 09:06 tillkuhn