I’m trying to apply this theme to the file browser:
5. What I already tried:
Based on what I gather from the included README and example caddyfiles, I have tried to simply clone the repo to /var/www/html and adjust the Caddyfile, but it seems I haven’t figured out how to do that properly.
Using root * /var/www/html/caddy-browse-template of course just starts the file browser inside the cloned repo and pointing root to /var/www/html/caddy-browse-template/template.html fails to display anything.
This doesn’t work either:
Also, I’d recommend keeping your template file outside of your site root (like not inside /var/www/html) because then it’ll be browsable itself. Not really problematic, but cleaner to keep it outside.
Thank’s a lot for your help @francislavoie!
I have now moved the theme repo outside the fileserver’s root (to /var/www/caddy-browse-template) and tried changing the Caddyfile to
In Firefox this gives me a broken styling and when I click on the directory packages for example, I get an error message that the page isn’t available.
At the same time Chromium displays a somewhat better styling:
Looking at the content of template.html I see links like /icons/favicon.svg or /style.css.
In the theme repo those reside inside static/
So I tried moving template.html inside the static/ dir so it can “see” those files.
The effect now being that I can open packages/ directory now also in Firefox, but styling is still broken like before in FF and it looks the same as before in Chromium, too, with the bright background…