Skip to content

Instantly share code, notes, and snippets.

@lukaszjanyga
Created March 6, 2018 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukaszjanyga/d6aed0951858734f50b27da6eca17dcf to your computer and use it in GitHub Desktop.
Save lukaszjanyga/d6aed0951858734f50b27da6eca17dcf to your computer and use it in GitHub Desktop.
config.init(CONFIG_FILE)
.then(() => {
config.config.bodyParser = require('./config/upload_config');
return hydraExpress.init(config.getObject(), version, onRegisterRoutes, onRegisterMiddleware);
})
MAX_FILE_SIZE = '20mb';
module.exports = {
json: {
limit: MAX_FILE_SIZE
},
urlencoded: {
limit: MAX_FILE_SIZE,
extended: false
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment