mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-15 02:50:10 +01:00
set large limit on express server requests
This commit is contained in:
parent
31fbb0784b
commit
c283ae33a3
@ -19,12 +19,14 @@ const { utilEndpoints } = require("./endpoints/utils");
|
||||
const { Telemetry } = require("./models/telemetry");
|
||||
const app = express();
|
||||
const apiRouter = express.Router();
|
||||
const FILE_LIMIT = "3GB";
|
||||
|
||||
app.use(cors({ origin: true }));
|
||||
app.use(bodyParser.text());
|
||||
app.use(bodyParser.json());
|
||||
app.use(bodyParser.text({ limit: FILE_LIMIT }));
|
||||
app.use(bodyParser.json({ limit: FILE_LIMIT }));
|
||||
app.use(
|
||||
bodyParser.urlencoded({
|
||||
limit: FILE_LIMIT,
|
||||
extended: true,
|
||||
})
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user