mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-26 01:50:34 +00:00
allow js and css
This commit is contained in:
parent
d640e4ac96
commit
ea7f3c297e
2 changed files with 4 additions and 4 deletions
|
@ -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|webp)$ {
|
||||
location ~ \.(bmp|ico|jpg|jpeg|png|tif|tiff|webp|css|js)$ {
|
||||
root /app;
|
||||
try_files $uri =404;
|
||||
add_header X-Cache-Status STATIC;
|
||||
|
@ -72,7 +72,7 @@ server {
|
|||
}
|
||||
|
||||
# block access to any non-image files from images or static
|
||||
location ~ ^/(images|static)/ {
|
||||
location ~ ^/images/ {
|
||||
return 403;
|
||||
}
|
||||
|
||||
|
|
|
@ -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|webp)$ {
|
||||
# location ~ \.(bmp|ico|jpg|jpeg|png|tif|tiff|webp|css|js)$ {
|
||||
# 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|static)/ {
|
||||
# location ~ ^/images/ {
|
||||
# return 403;
|
||||
# }
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue