revert changes

This commit is contained in:
Steffen Illium 2023-12-24 11:48:59 +01:00 committed by Steffen Illium
parent 2d2d7fab6f
commit 83cbd2749b

View File

@ -1,9 +1,3 @@
map $http_accept $webp_suffix { "~*webp" ".webp"; }
types {
# ensure the nginx supports the mime type
image/webp webp;
}
server {
listen 80;
listen [::]:80;
@ -23,9 +17,6 @@ server {
add_header Cache-Control "public, no-transform";
}
location ~* \.(?:png|jpe?g)(\?.+)?$ {
try_files $uri$webp_suffix $uri =404;
}
error_page 404 /404.html;
location = /404.html {