From dd5c314bd5e0808ecaedbf31447fd4edc4a3ea06 Mon Sep 17 00:00:00 2001 From: Milan Date: Thu, 18 Jan 2024 22:29:43 +0100 Subject: [PATCH] nginx: also serve svg static files --- nginx/development | 2 +- nginx/production | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/development b/nginx/development index 0054c8c26..fdfd14e1d 100644 --- a/nginx/development +++ b/nginx/development @@ -64,7 +64,7 @@ server { # directly serve images and static files from the # bookwyrm filesystem using sendfile. # make the logs quieter by not reporting these requests - location ~ \.(bmp|ico|jpg|jpeg|png|tif|tiff|ttf|webp|css|js)$ { + location ~ \.(bmp|ico|jpg|jpeg|png|svg|tif|tiff|ttf|webp|css|js)$ { root /app; try_files $uri =404; add_header X-Cache-Status STATIC; diff --git a/nginx/production b/nginx/production index 7cc0bad22..296ede70c 100644 --- a/nginx/production +++ b/nginx/production @@ -96,7 +96,7 @@ server { # # directly serve images and static files from the # # bookwyrm filesystem using sendfile. # # make the logs quieter by not reporting these requests -# location ~ \.(bmp|ico|jpg|jpeg|png|tif|tiff|ttf|webp|css|js)$ { +# location ~ \.(bmp|ico|jpg|jpeg|png|svg|tif|tiff|ttf|webp|css|js)$ { # root /app; # try_files $uri =404; # add_header X-Cache-Status STATIC;