A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
chore: simplify caching setup
aminnausin59e18ed13c62
diff --git a/docker/etc/nginx/conf.d/default.conf b/docker/etc/nginx/conf.d/default.confindex e0cb24c0..9491a675 100644--- a/docker/etc/nginx/conf.d/default.conf+++ b/docker/etc/nginx/conf.d/default.conf@@ -52,19 +52,7 @@ server {}location /storage/ {- location /storage/thumbnails/ {- add_header Cache-Control "public, max-age=604800, must-revalidate";- try_files $uri =404;- allow all;- }-- location /storage/posters/ {- add_header Cache-Control "public, max-age=604800, must-revalidate";- try_files $uri =404;- allow all;- }-- location /storage/previews/ {+ location ~ ^/storage/(thumbnails|posters|previews)/ {add_header Cache-Control "public, max-age=604800, must-revalidate";try_files $uri =404;allow all;@@ -76,12 +64,7 @@ server {}}- location ~* \.(?:css|js|woff2?|ttf|eot|otf)$ {- add_header Cache-Control "public, max-age=604800, must-revalidate";- try_files $uri =404;- }-- location ~* \.(?:ico|jpg|jpeg|png|gif|webp|svg)$ {+ location ~* \.(?:css|js|woff2?|ttf|eot|otf|ico|jpe?g|png|gif|webp|svg)$ {add_header Cache-Control "public, max-age=604800, must-revalidate";try_files $uri =404;}