pottava/aws-s3-proxy

Display INDEX_DOCUMENT if exists and DIRECTORY_LISTINGS=true

EvgeniGordeev opened this issue · 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

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

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