List of user created browse templates?

(Adriel) #1

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?

(Matt Holt) #2

I don’t know of one. Feel free to link to it here. :slight_smile:

1 Like
(Adriel) #3

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: https://github.com/adriel/Caddy-Server-minimal-browse-template

1 Like
(Chamunks) #4

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.

2 Likes
(Adriel) #5

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:
1 Like
(Chamunks) #6

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.

1 Like