I’m about to create my own browse template, but just wondering if there is some kinda central location that links to all the templates other people have already made?
I don’t know of one. Feel free to link to it here.
Hmm dang, was hoping to get some example code, doesn’t matter, just finished porting it over, not quite as clean (code wise) as I’d like, but it works for now.
Thanks, it’s here if anyone is interested: GitHub - adriel/Caddy-Server-minimal-browse-template: Minimalist Caddy browse template
If you’re still active, did you ever write a Caddyfile? I would love to see your example the documentation here explains a lot about things but it never really shows examples in practice. This is one of the biggest problems I’ve seen with other competing web servers.
Haha yeah, oh the fun I had trying to get it to work.
This is the caddy file I ended up with:
root /var/www/files/
browse / /home/username/web/tpl/browse.tpl
gzip
}```
The ```browse.tpl``` permissions are ```-rwxr-xr-x``` and the user/group is username/username
Hope that helps :slight_smile:
Tyvm I should do a PR with that on your git repo or something with link back to this for future idiots like myself who don’t like guesswork.