fix: downgrade sharp to 0.32.6 for older CPU compatibility, add /uploads-resized/ to nginx config

This commit is contained in:
Kirill
2026-05-15 19:06:22 +05:00
parent 1739f52ad3
commit 8b79c01985
3 changed files with 635 additions and 516 deletions
+9
View File
@@ -85,6 +85,15 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /uploads-resized/ {
client_max_body_size 250m;
proxy_pass http://127.0.0.1:3333;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location / {
try_files $uri $uri/ /index.html;
}
+625 -515
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -21,7 +21,7 @@
"dotenv": "^17.4.2",
"fastify": "^5.8.5",
"nodemailer": "^8.0.7",
"sharp": "^0.34.5"
"sharp": "0.32.6"
},
"devDependencies": {
"prisma": "5.22.0",