Use environment variable for maxFileSize

Updated maxFileSize to use environment variable or default.
This commit is contained in:
a10kiloham 2026-07-28 16:16:53 +01:00 committed by GitHub
parent 0030acc526
commit 5d08ed9c0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -59,7 +59,7 @@ module.exports = {
// #148 Item 4: TCP SO_KEEPALIVE idle delay — OS-level dead-peer probing independent of the // #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. // app ping, so a half-open TCP can't persist indefinitely.
tcpKeepAliveMs: parseInt(process.env.TCP_KEEPALIVE_MS) || 20000, 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, thumbnailWidth: 320,
screenshotQuality: 70, screenshotQuality: 70,
// SSL: drop your Cloudflare Origin cert + key in certs/ folder // SSL: drop your Cloudflare Origin cert + key in certs/ folder