Caddy browse template that replicate the output from apache mod_autoindex for compability with kodi.
Just copy the apaddy folder to the path you want to serve with caddy.
sub.domain.tld {
root * /path/to/served/directory
file_server {
browse /path/to/served/directory/apaddy/apaddy_browse_template.html
}
}
Have a look at CaddyBrowseForKodi. A modified version of caddys default browse template that works with Kodi.