alexcdev1 6 ماه پیش
والد
کامیت
d5d967fe01
1فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 6 0
      nginx/default.conf

+ 6 - 0
nginx/default.conf

@@ -26,6 +26,12 @@ server {
         return 200 'OK';
     }
 
+    location /uploads {
+        alias /app/public/uploads;
+        expires 30d;
+        add_header Cache-Control "public, max-age=2592000";
+    }
+
     # Security headers
     add_header X-Frame-Options "SAMEORIGIN" always;
     add_header X-XSS-Protection "1; mode=block" always;