Skip to content
Snippets Groups Projects
Commit c283ae33 authored by timothycarambat's avatar timothycarambat
Browse files

set large limit on express server requests

parent 31fbb078
Branches
Tags
No related merge requests found
......@@ -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,
})
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment