nginx: fix missing ttf static files

This commit is contained in:
Milan 2024-01-18 17:03:02 +01:00
parent fb5fae4251
commit a59dcfc890
2 changed files with 2 additions and 2 deletions

View file

@ -64,7 +64,7 @@ server {
# directly serve images and static files from the # directly serve images and static files from the
# bookwyrm filesystem using sendfile. # bookwyrm filesystem using sendfile.
# make the logs quieter by not reporting these requests # make the logs quieter by not reporting these requests
location ~ \.(bmp|ico|jpg|jpeg|png|tif|tiff|webp|css|js)$ { location ~ \.(bmp|ico|jpg|jpeg|png|tif|tiff|ttf|webp|css|js)$ {
root /app; root /app;
try_files $uri =404; try_files $uri =404;
add_header X-Cache-Status STATIC; add_header X-Cache-Status STATIC;

View file

@ -96,7 +96,7 @@ server {
# # directly serve images and static files from the # # directly serve images and static files from the
# # bookwyrm filesystem using sendfile. # # bookwyrm filesystem using sendfile.
# # make the logs quieter by not reporting these requests # # make the logs quieter by not reporting these requests
# location ~ \.(bmp|ico|jpg|jpeg|png|tif|tiff|webp|css|js)$ { # location ~ \.(bmp|ico|jpg|jpeg|png|tif|tiff|ttf|webp|css|js)$ {
# root /app; # root /app;
# try_files $uri =404; # try_files $uri =404;
# add_header X-Cache-Status STATIC; # add_header X-Cache-Status STATIC;