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;