Adds production.conf security configuration missing in version 0.7.2

This commit is contained in:
FoW 2024-02-10 17:54:25 +09:00
parent 7469f1f4ca
commit 1c587c5e53

View file

@ -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|svg|tif|tiff|ttf|webp|css|js)$ {
# location ~ \.(bmp|ico|jpg|jpeg|png|svg|tif|tiff|ttf|webp|css|js|woff|ttf)$ {
# root /app;
# try_files $uri =404;
# add_header X-Cache-Status STATIC;
@ -104,7 +104,7 @@ server {
# }
# # block access to any non-image files from images or static
# location ~ ^/images/ {
# location ~ ^/(images|static)/ {
# return 403;
# }
#