| 244 | app.use(compression()); | 245 | app.use(compression()); |
| 245 | app.use(responseTime()); | 246 | app.use(responseTime()); |
| 246 | | 247 | |
| 247 | function stringToBool(str) { | | |
| 248 | if (str === 'true') return true; | | |
| 249 | if (str === 'false') return false; | | |
| 250 | return str; | | |
| 251 | } | | |
| 252 | | 248 | |
| 253 | const server_port = cliArguments.port ?? process.env.SILLY_TAVERN_PORT ?? getConfigValue('port', DEFAULT_PORT); | 249 | const server_port = cliArguments.port ?? process.env.SILLY_TAVERN_PORT ?? getConfigValue('port', DEFAULT_PORT); |
| 254 | const autorun = (cliArguments.autorun ?? getConfigValue('autorun', DEFAULT_AUTORUN)) && !cliArguments.ssl; | 250 | const autorun = (cliArguments.autorun ?? getConfigValue('autorun', DEFAULT_AUTORUN)) && !cliArguments.ssl; |