fix: nginx not caching static resources (#254)

The current nginx config isn't caching any images given they're not
being served under the `/static/` path.
This commit is contained in:
Juan Broullon
2025-03-21 18:06:09 +01:00
committed by GitHub
parent e65efdebc7
commit d4ddffe1eb
+1 -1
View File
@@ -43,7 +43,7 @@ server {
error_log /var/log/nginx/error.log;
# Static file handling with proper MIME types and consistent caching
location ~* ^/static/(.*)$ {
location ~* \.(jpg|jpeg|png|gif|ico|svg|webp|woff|woff2|ttf|eot)$ {
proxy_pass http://127.0.0.1:3000;
# Include MIME types