Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

2. Configuration

Tristan Chin edited this page Jul 3, 2022 · 10 revisions

Configuration

Some parameters for the server can be edited to customize the limits set by default. You can either modify the default values before building the project in the config file, or you can pass the configuration as an environment variable (process.env).

Environment Type Description Default
PORT number Port number of the server 3000
PASSWORD string Password that should be used in 'Authorization' header letmein
USE_PASSWORD boolean Whether or not to authenticate routes with a password true
MAX_FILE_UPLOAD_COUNT number Maximum amount of files that can be uploaded at once 10
MAX_FILE_UPLOAD_SIZE number Maximum file size of the individual file uploaded (total would be MAX_FILE_UPLOAD_SIZE * MAX_FILE_UPLOAD_COUNT) 100MB
MAX_MERGER_FILE_COUNT number Maximum total files a merger can hold 10
MAX_MERGER_FILE_SIZE number Maximum total size a merger can hold 100MB
CLEANUP_MERGERS_DELAY number Time (ms) after which a merge is cleaned up. When cleaning up a merge, all files associated with it are deleted. 45s
REQUEST_LOGGING boolean Enable request logging true
MERGER_LOGGING boolean Enable merger logging true
Clone this wiki locally