nginxinc / nginx-s3-gateway

NGINX S3 Caching Gateway
Apache License 2.0
515 stars 127 forks source link

Fixes #164 #167

Closed dekobon closed 1 year ago

dekobon commented 1 year ago

This PR fixes the issue #164

Expectations

This solution assumes that the following configuration options are set to true

Given a folder test with an index.html present in the directory, the index.html should be served for:

Given a folder test WITHOUT an index.html present in the directory, files in the directory should be listed for:

Notes

4141done commented 1 year ago

I think your changes here look good, but doing some testing I found some odd behavior. I'm not 100% sure of all my conclusions, but I put together draft PR for your reference for possible inclusion into this change. https://github.com/nginxinc/nginx-s3-gateway/pull/169