mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 21:00:58 +03:00
add FLOWISE_FILE_SIZE_LIMIT variable
This commit is contained in:
@@ -20,6 +20,7 @@ PORT=3000
|
|||||||
# FLOWISE_USERNAME=user
|
# FLOWISE_USERNAME=user
|
||||||
# FLOWISE_PASSWORD=1234
|
# FLOWISE_PASSWORD=1234
|
||||||
# FLOWISE_SECRETKEY_OVERWRITE=myencryptionkey
|
# FLOWISE_SECRETKEY_OVERWRITE=myencryptionkey
|
||||||
|
# FLOWISE_FILE_SIZE_LIMIT=50mb
|
||||||
# DEBUG=true
|
# DEBUG=true
|
||||||
# LOG_LEVEL=debug (error | warn | info | verbose | debug)
|
# LOG_LEVEL=debug (error | warn | info | verbose | debug)
|
||||||
# TOOL_FUNCTION_BUILTIN_DEP=crypto,fs
|
# TOOL_FUNCTION_BUILTIN_DEP=crypto,fs
|
||||||
|
|||||||
@@ -120,8 +120,9 @@ 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
|
||||||
this.app.use(express.json({ limit: '50mb' }))
|
const flowise_file_size_limit = process.env.FLOWISE_FILE_SIZE_LIMIT ?? '50mb'
|
||||||
this.app.use(express.urlencoded({ limit: '50mb', extended: true }))
|
this.app.use(express.json({ limit: flowise_file_size_limit }))
|
||||||
|
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)
|
||||||
this.app.set('trust proxy', parseInt(process.env.NUMBER_OF_PROXIES))
|
this.app.set('trust proxy', parseInt(process.env.NUMBER_OF_PROXIES))
|
||||||
|
|||||||
Reference in New Issue
Block a user