*scanserv-js* blocks the HTTP request while waiting for a scan to
complete. For large, multi-page documents, the scan can take several
minutes. To prevent the request from timing out and interrupting the
scan, we need to increase the proxy timeout configuration.
The Canon PIXMA G7020 reports the supported dimensions of the flatbed,
but its automatic document feeder supports larger paper sizes.
Fortunately, *scanserv-js* provides a (somewhat kludgey) mechanism to
override the reported settings with more appropriate values.
*scanserv-js* is a web-based front-end for SANE. It allows scanning
documents from a browser.
Using the `config.local.js` file, we implement the `afterScan` hook to
automatically upload scanned files to *paperless-ngx* using its REST
API.