mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 05:01:10 +03:00
Bugfix/Default file size limit (#2334)
update default flowise file size limit
This commit is contained in:
@@ -81,7 +81,7 @@ export class App {
|
|||||||
|
|
||||||
async config(socketIO?: Server) {
|
async config(socketIO?: Server) {
|
||||||
// Limit is needed to allow sending/receiving base64 encoded string
|
// Limit is needed to allow sending/receiving base64 encoded string
|
||||||
const flowise_file_size_limit = process.env.FLOWISE_FILE_SIZE_LIMIT ?? '50mb'
|
const flowise_file_size_limit = process.env.FLOWISE_FILE_SIZE_LIMIT || '50mb'
|
||||||
this.app.use(express.json({ limit: flowise_file_size_limit }))
|
this.app.use(express.json({ limit: flowise_file_size_limit }))
|
||||||
this.app.use(express.urlencoded({ limit: flowise_file_size_limit, extended: true }))
|
this.app.use(express.urlencoded({ limit: flowise_file_size_limit, extended: true }))
|
||||||
if (process.env.NUMBER_OF_PROXIES && parseInt(process.env.NUMBER_OF_PROXIES) > 0)
|
if (process.env.NUMBER_OF_PROXIES && parseInt(process.env.NUMBER_OF_PROXIES) > 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user