added file size limit env var

This commit is contained in:
Sami Salkosuo 2020-04-14 15:36:31 +03:00
parent 52553229fa
commit 15ee2509f7

View File

@ -27,8 +27,7 @@ const logger = createLogger({
})]
});
//constants
fileSizeLimit = 524288000;
fileSizeLimit = parseInt(process.env.FILE_SIZE_LIMIT_BYTES || "536870912") //536870912 = 512MB
port = 3000;
timeout = 3600000;