diff options
| author | dakkar <dakkar@thenautilus.net> | 2024-08-06 19:41:26 +0000 |
|---|---|---|
| committer | dakkar <dakkar@thenautilus.net> | 2024-08-06 19:41:26 +0000 |
| commit | f33aedfc9fd6974aab671c53ae58d8635a558574 (patch) | |
| tree | 08773e018389c07de0ecbbb52df1e895f390e97c /packages/backend/src | |
| parent | merge: Remove infinite caches to prevent memory leak (!587) (diff) | |
| parent | appease the linter (diff) | |
| download | sharkey-f33aedfc9fd6974aab671c53ae58d8635a558574.tar.gz sharkey-f33aedfc9fd6974aab671c53ae58d8635a558574.tar.bz2 sharkey-f33aedfc9fd6974aab671c53ae58d8635a558574.zip | |
merge: fix env variable type (!592)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/592
Approved-by: Marie <marie@kaifa.ch>
Approved-by: Tess K <me@thvxl.se>
Diffstat (limited to 'packages/backend/src')
| -rw-r--r-- | packages/backend/src/config.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/config.ts b/packages/backend/src/config.ts index 841881da25..9411a7b599 100644 --- a/packages/backend/src/config.ts +++ b/packages/backend/src/config.ts @@ -229,7 +229,7 @@ export function loadConfig(): Config { if (configFiles.length === 0 && !process.env['MK_WARNED_ABOUT_CONFIG']) { console.log('No config files loaded, check if this is intentional'); - process.env['MK_WARNED_ABOUT_CONFIG'] = true; + process.env['MK_WARNED_ABOUT_CONFIG'] = '1'; } const config = configFiles.map(path => fs.readFileSync(path, 'utf-8')) @@ -458,7 +458,7 @@ function applyEnvOverrides(config: Source) { _apply_top([['sentryForFrontend', 'sentryForBackend'], 'options', ['dsn', 'profileSampleRate', 'serverName', 'includeLocalVariables', 'proxy', 'keepAlive', 'caCerts']]); _apply_top(['sentryForBackend', 'enableNodeProfiling']); _apply_top([['clusterLimit', 'deliverJobConcurrency', 'inboxJobConcurrency', 'relashionshipJobConcurrency', 'deliverJobPerSec', 'inboxJobPerSec', 'relashionshipJobPerSec', 'deliverJobMaxAttempts', 'inboxJobMaxAttempts']]); - _apply_top([['outgoingAddress', 'outgoingAddressFamily', 'proxy', 'proxySmtp', 'mediaProxy', 'proxyRemoteFiles','videoThumbnailGenerator']]); + _apply_top([['outgoingAddress', 'outgoingAddressFamily', 'proxy', 'proxySmtp', 'mediaProxy', 'proxyRemoteFiles', 'videoThumbnailGenerator']]); _apply_top([['maxFileSize', 'maxNoteLength', 'pidFile']]); _apply_top(['import', ['downloadTimeout', 'maxFileSize']]); _apply_top([['signToActivityPubGet', 'checkActivityPubGetSignature']]); |