Class BaseConfig

Properties

childInstance: boolean = ...

Child instances do not run migrations or execute scheduled tasks. If you have multiple instances running, all but one should be child instances.

false

CHILD_INSTANCE

disableEnv: boolean = ...

Disable the loading of a .env file.

false
dnsServer: string = ...

DNS server override. Rarely needed.

''

DNS_SERVER

idLength: number = ...

The length of the IDs. Cannot be higher than 32, and should not be lower than 8. As we use nanoId, 21 is equal to the 32 characters of a UUID v4.

instancePassword: string = ...

The password to access the instance. If empty, the instance is publicly accessible. If set, this will load and enable a global middleware to check for the password inside the Authorization header. The only exception is the /info endpoint, which is always publicly accessible.

''

INSTANCE_PASSWORD

logLevel: string = ...

The log level of the app.

'info'

'fatal', 'error', 'warn', 'log', 'debug', 'verbose', 'trace'

LOG_LEVEL

port: number = ...

The port the app should listen on.

4000

PORT

statsPassword: string = ...

The password to access the stats api. If empty, the stats api is publicly accessible (except the instancePassword is set).

''

STATS_PASSWORD

swaggerDisabled: boolean = ...

If swagger should be disabled.

false

DISABLE_SWAGGER