From 76838d412227f3921c5c0d33b05ac78c2a7c25b4 Mon Sep 17 00:00:00 2001 From: Steffen Illium Date: Sun, 24 Dec 2023 13:30:59 +0100 Subject: [PATCH] revert --- nginx_default.conf | 9 --------- 1 file changed, 9 deletions(-) diff --git a/nginx_default.conf b/nginx_default.conf index 71a8aafd..15823e3b 100644 --- a/nginx_default.conf +++ b/nginx_default.conf @@ -21,15 +21,6 @@ server { add_header Cache-Control "public, no-transform"; } - # Capture image path, without the file extension - map $uri $image { - ~*^/(assets)/(.+)\.(jpe?g|png)$ /$1/$2; - } - - location /assets { - add_header Vary Accept; - try_files $image$webp_suffix $uri =404; - } error_page 404 /404.html; location = /404.html {