New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can't disable index page #237
Comments
Hello, Thanks for your bug. I supposed that what you are calling "index page" is the target list right ? Maybe you should try with the version Regards, |
I missed that there was a new version. I just used the default image for the latest helm chart 2.7.0 I'm having the same issue with the latest version Here is my full config copied from the running pod using the command log:
level: debug
format: text
targets:
first-bucket:
mount:
path:
- /
bucket:
name: foo-common.example.com
prefix:
region: gra
s3Endpoint: https://s3.gra.cloud.ovh.net
credentials:
accessKey:
path: /proxy/secret-files/s3-access-key-id.txt
secretKey:
path: /proxy/secret-files/s3-secret-access-key.txt |
Hello, With that configuration, you should have the content of the bucket named "foo-common.example.com" displayed on Regards, |
I think I know what I misunderstood. I thought that But now I understand that it shows the "Target buckets list" page when enabled. So my new question is. Is it possible to disable listing files when the key is a folder? |
I'm afraid that the only way to achieve that is to change the template used for the file listing. You can find it here as the "folderList" one. |
I would also like to disable the listing and report a 404 whenever a "folder" is listed. Modifying the template wont cut it as it wont reply a proper 404. That would be a nice feature to be able to disable listing, ideal for static websites publishing. |
I see what you are looking for. But some servers are answering 403, others 404, others 401, ... In the meantime, you can override the list template and flush it no ? As a workaround for the moment I mean. Regards, |
Hello, I'm trying to implement a feature that will allow putting templates for status code. Regards, |
Hello, I've just released a new chart and application version (2.9.0 for the chart and 4.3.0 for the application). That new application version has support for custom status codes that can be templated. Hope you will like it. Regards, Oxyno-zeta |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days |
Describe the bug
I am trying to disable the index page by configuring ListTargetsConfiguration
To Reproduce
I have tried the following configurations. But they all show the index page.
Expected behavior
Do not show and index page with files when I visit
https://mys3proxy.example.com
Version and platform (please complete the following information):
The text was updated successfully, but these errors were encountered: