mirror of
https://github.com/cloudpanel-io/cloudpanel-ce.git
synced 2026-04-05 20:31:58 +02:00
Add avif image mime types to Nginx config #134
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kimdre on 1/25/2025
CloudPanel version(s) affected
2.5.0
Description
The default nginx configuration does not include mime types for avif images.
I want to suggest to add them to prevent issues when viewing avif images directly.
With the current config (missing mime types), when you try to open a avif image in the browser, the
content-typeheader will be set toapplication/octet-streambecause nginx does not know how to handle the mime type, which causes the file to be downloaded instead of displayed as an image.How to reproduce
Possible Solution
To fix this, add these to
/etc/nginx/mime.types:Additional Context
No response