Re:static-server: an HTTP server in Go for static content
by skrebbel on Saturday September 16, 2023 @04:04PM
(#37538171)
Only for directory listings I think. And of course you can turn that off as well.
Re:static-server: an HTTP server in Go for static content
by mholt on Saturday September 16, 2023 @06:31PM
(#37539448)
To clarify, you do need to use --templates to enable template evaluation on the static files.
But for the `caddy respond` command, minimal templates are available by default; see the docs here: https://caddyserver.com/docs/command-line#examples
I assume that's just poorly phrased?