From c70816611ffb41052dd51c0ba1086070df13c2f3 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Tue, 3 Dec 2024 06:26:13 +0800 Subject: [PATCH] DEV: Allow webp images to be served directly by nginx (#30050) This fixes a typo that was introduced in baa5389a237525514708a17dfa3c6b7012828dcb --- config/nginx.sample.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/nginx.sample.conf b/config/nginx.sample.conf index 287c91a6bce..dddec2374d7 100644 --- a/config/nginx.sample.conf +++ b/config/nginx.sample.conf @@ -196,7 +196,7 @@ server { try_files $uri =404; } # this allows us to bypass rails - location ~* \.(gif|png|jpg|jpeg|bmp|tif|tiff|ico||avif)$ { + location ~* \.(gif|png|jpg|jpeg|bmp|tif|tiff|ico|webp|avif)$ { add_header Access-Control-Allow-Origin *; try_files $uri =404; }