mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-05-02 17:07:13 +00:00
set large limit on express server requests
This commit is contained in:
parent
31fbb0784b
commit
c283ae33a3
1 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue