mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
fix(api): make the http header and request timeouts tunable (#2259)
This commit is contained in:
1 parent
995f5118b2
commit
45f694310a
10 files changed
+128
-2
No files matched your search
@@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import {createAPIApp} from '@app/api/App';
|
||||
import {initializeConfig} from '@app/api/Config';
|
||||
import {buildAPIServerOptions, initializeConfig} from '@app/api/Config';
|
||||
import {initializeLogger} from '@app/api/Logger';
|
||||
import {Config} from '@app/Config';
|
||||
import {shutdownInstrumentation} from '@app/Instrument';
|
||||
@@ -34,7 +34,7 @@ async function main(): Promise<void> {
|
||||
process.on('unhandledRejection', (reason) => {
|
||||
Logger.error({reason}, 'Unhandled rejection (suppressed)');
|
||||
});
|
||||
const server = createServer(app, {port: Config.port});
|
||||
const server = createServer(app, buildAPIServerOptions(Config));
|
||||
Logger.info({port: Config.port}, `Starting Fluxer API on port ${Config.port}`);
|
||||
setupGracefulShutdown(
|
||||
async () => {
|
||||
|
||||
Reference in new issue
Block a user