pimcore / skeleton

The Pimcore Skeleton - The right package to get your Pimcore project started from the ground up! 💪
https://pimcore.com
100 stars 107 forks source link

[Bug]: Duplicate extension "avif", content type #161

Closed NiklasBr closed 1 year ago

NiklasBr commented 1 year ago

Expected behavior

No errors or warnings from Nginx when starting up. Can you reproduce this issue?

Actual behavior

With Nginx 1.24 we get the following warning on starting the container:

2023-07-25 10:38:43 nginx: [warn] duplicate extension "avif", content type: "image/avif", previous content type: "image/avif" in /etc/nginx/conf.d/default.conf:5
2023-07-25 10:38:43 nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
2023-07-25 10:38:43 nginx: configuration file /etc/nginx/nginx.conf test is successful

The content type appears to already be defined in newer versions on Nginx, see: Screenshot 2023-07-25 at 10 53 55

Steps to reproduce

These lines may not be required.

https://github.com/pimcore/skeleton/blob/31a0daef0c3d996b677d8bd51f77fe3ef5030f2d/.docker/nginx.conf#L2-L6

dvesh3 commented 1 year ago

Fixed by 5377528a16bc3050a98f7d607b28a3dd2324fcb4