Lindenlab/caddy-s3-proxy browse directive behaviour

Hello to all.

I have successfully built Caddy with S3 proxy plugin. Working fine out of the box.
I am having issues to figure out how the browse directive should work.
Trying to curl to a “folder” curl localhost/combined-dragen/ but I’m getting error 500.
If I try to access a file I successfully get a response.

It is not critical for my use case but I wanted to understand it anyways.
Error message:

2021/10/11 15:47:52.365 ERROR   http.log.error  template: default_listing:5:26: executing "default_listing" at <.PageObj>: can't evaluate field PageObj in type caddys3proxy.PageObj       {"request": {"remote_addr": "", "proto": "HTTP/1.1", "method": "GET", "host": "localhost", "uri": "/combined-dragen/", "headers": {"User-Agent": ["curl/7.76.1"], "Accept": ["*/*"]}}, "duration": 0.037100034, "status": 500, "err_id": "fnstkc6nm", "err_trace": "caddy-s3-proxy.convertToCaddyError (errors.go:118)"}
2021/10/11 15:47:52.365 ERROR   http.log.access handled request {"request": {"remote_addr": "", "proto": "HTTP/1.1", "method": "GET", "host": "localhost", "uri": "/combined-dragen/", "headers": {"User-Agent": ["curl/7.76.1"], "Accept": ["*/*"]}}, "common_log": " - - [11/Oct/2021:15:47:52 +0000] \"GET /combined-dragen/ HTTP/1.1\" 500 0", "user_id": "", "duration": 0.037100034, "size": 0, "status": 500, "resp_headers": {"Server": ["Caddy"]}}

This is my Caddyfile

        order s3proxy last
:80 {
        s3proxy /* {
                region "eu-central-1"
                bucket "bucket-name"
                #index index.html
1 Like

Best if you ask for help by opening an issue on the github repo for that plugin. Unless the author of the plug-in frequents the forums (not sure if they do), you’re more likely to get help that way.