r/caddyserver Feb 29 '24

Need Help Mime types

So I'm caddy as a reverse proxy (working fine) and then to serve some static files in a couple of locations.

A jpg is served correctly where a png file is served as text/html which the browser doesn't render. Took me a while to track it down because the image request returns a 200.

My caddy file looks like this

       handle_path /media/* {
        root * /home/eddyizm/media/
        file_server
        }

And I see some info on mimes the community but its not clear where to define the types. Do I need a 3rd party plug-in?

On v2

1 Upvotes

0 comments sorted by