mirror of
https://github.com/screentinker/screentinker.git
synced 2026-08-16 23:33:10 -06:00
Use environment variable for maxFileSize
Updated maxFileSize to use environment variable or default.
This commit is contained in:
parent
0030acc526
commit
5d08ed9c0e
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue