From 5d08ed9c0ee4720368a935e0645bf57dd7b2aaa3 Mon Sep 17 00:00:00 2001 From: a10kiloham <295361+a10kiloham@users.noreply.github.com> Date: Tue, 28 Jul 2026 16:16:53 +0100 Subject: [PATCH] Use environment variable for maxFileSize Updated maxFileSize to use environment variable or default. --- server/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/config.js b/server/config.js index 3611fd1..ba1816e 100644 --- a/server/config.js +++ b/server/config.js @@ -59,7 +59,7 @@ module.exports = { // #148 Item 4: TCP SO_KEEPALIVE idle delay — OS-level dead-peer probing independent of the // app ping, so a half-open TCP can't persist indefinitely. tcpKeepAliveMs: parseInt(process.env.TCP_KEEPALIVE_MS) || 20000, - maxFileSize: 500 * 1024 * 1024, // 500MB + maxFileSize: process.env.MAX_FILE_SIZE || 500 * 1024 * 1024, // 500MB thumbnailWidth: 320, screenshotQuality: 70, // SSL: drop your Cloudflare Origin cert + key in certs/ folder