mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 02:51:13 +00:00
Adds production.conf security configuration missing in version 0.7.2
This commit is contained in:
parent
7469f1f4ca
commit
1c587c5e53
1 changed files with 2 additions and 2 deletions
|
@ -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|svg|tif|tiff|ttf|webp|css|js)$ {
|
# location ~ \.(bmp|ico|jpg|jpeg|png|svg|tif|tiff|ttf|webp|css|js|woff|ttf)$ {
|
||||||
# root /app;
|
# root /app;
|
||||||
# try_files $uri =404;
|
# try_files $uri =404;
|
||||||
# add_header X-Cache-Status STATIC;
|
# add_header X-Cache-Status STATIC;
|
||||||
|
@ -104,7 +104,7 @@ server {
|
||||||
# }
|
# }
|
||||||
|
|
||||||
# # block access to any non-image files from images or static
|
# # block access to any non-image files from images or static
|
||||||
# location ~ ^/images/ {
|
# location ~ ^/(images|static)/ {
|
||||||
# return 403;
|
# return 403;
|
||||||
# }
|
# }
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue