allow js and css

This commit is contained in:
Hugh Rundle 2024-01-17 20:12:06 +11:00
parent d640e4ac96
commit ea7f3c297e
No known key found for this signature in database
GPG key ID: A7E35779918253F9
2 changed files with 4 additions and 4 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)$ { location ~ \.(bmp|ico|jpg|jpeg|png|tif|tiff|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;
@ -72,7 +72,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|static)/ { location ~ ^/images/ {
return 403; return 403;
} }

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)$ { # location ~ \.(bmp|ico|jpg|jpeg|png|tif|tiff|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;
@ -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|static)/ { # location ~ ^/images/ {
# return 403; # return 403;
# } # }
# #