title: increase express post body limit to proxied api
body: <p>I have a seperate frontend and backend, where all requests to <a href="http://frontend.com/api" rel="nofollow noreferrer">http://frontend.com/api</a> are proxied to the backend. However we allow image uploads to be 10mb max, which gets limited by the 1mb internal limit of express on all request bodies.</p>
  
  <p>I have the following config:</p>
  
  <pre><code>const express = require('express');
  const consola = require('consola');
  const { Nuxt, Builder } = require('nuxt');
  const helmet = require('helmet');
  
  // Express
  const app = express();
  const host = process.env.HOST || '127.0.0.1';
  const port = process.env.PORT || 8080;
  
  app.set('port', port);
  
  // Import and Set Nuxt.js options
  const config = require('../nuxt.config.js');
  
  config.dev = !(process.env.NODE_ENV === 'production');
  
  async function start() {
    // Init Nuxt.js
    const nuxt = new Nuxt(config);
  
    if (config.dev) {
      const builder = new Builder(nuxt);
      await builder.build();
    }
  
    // NOTE: Only in production mode
    if (!config.dev) {
      // Helmet default security + Referrer + Features
      app.use(helmet());
    }
  
    // Proxy /api to proper backend
    app.use('/api', proxy(process.env.API_ENDPOINT || 'http://localhost:3000'));
  
    // Give nuxt middleware to express
    app.use(nuxt.render);
  
    // Listen the server
    app.listen(port, host);
    consola.ready({
      message: `Server listening on http://${host}:${port}`,
      badge: true,
    });
  }
  start();
  </code></pre>
  
  <p>I have tried adding body-parser, until I found out this only works for non multipart/form type of requests. Considering that this isn't an express backend, but only used to serve SSR (with nuxt), I have no idea how to get this to work with something like multer or busboy. </p>
  
  <p>Can this be done without having to setup nginx as a reverse proxy?</p>