Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Add listener and configs to signer runner #188

Merged
merged 1 commit into from
Apr 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/runners/signer_runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as cors from 'cors';
import * as express from 'express';
import * as asyncHandler from 'express-async-handler';

import * as defaultConfig from '../config';
import { META_TRANSACTION_PATH } from '../constants';
import { SignerHandlers } from '../handlers/signer_handlers';
import { logger } from '../logger';
Expand Down Expand Up @@ -33,6 +34,11 @@ if (require.main === module) {
app.use(errorHandler);

logger.info('Signing Service started!');
const server = app.listen(defaultConfig.HTTP_PORT, () => {
logger.info(`API (HTTP) listening on port ${defaultConfig.HTTP_PORT}!`);
});
server.keepAliveTimeout = defaultConfig.HTTP_KEEP_ALIVE_TIMEOUT;
server.headersTimeout = defaultConfig.HTTP_HEADERS_TIMEOUT;
})().catch(error => logger.error(error));
}
process.on('uncaughtException', err => {
Expand Down