Allow overriding config.yaml values with env vars

Closes #3520
This commit is contained in:
Cohee
2025-02-20 20:29:42 +02:00
parent 7ea2c5f8cf
commit f6fe5fea77
2 changed files with 13 additions and 1 deletions

View File

@@ -261,7 +261,7 @@ app.use(responseTime());
/** @type {number} */
const server_port = cliArguments.port ?? process.env.SILLY_TAVERN_PORT ?? getConfigValue('port', DEFAULT_PORT);
const server_port = cliArguments.port ?? getConfigValue('port', DEFAULT_PORT);
/** @type {boolean} */
const autorun = (cliArguments.autorun ?? getConfigValue('autorun', DEFAULT_AUTORUN)) && !cliArguments.ssl;
/** @type {boolean} */