File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // Public entry point for the RERUM API v1 server library
2- // Only the things exported here are considered a supported, stable
3- // API. Internal helpers and modules (controllers, database, routes,
4- // etc.) remain private and are not re-exported. Consumers of the
5- // package should be able to import from the package root rather than
6- // reach into deep paths.
7-
81import http from 'http'
92import app from './app.js'
103
@@ -38,8 +31,6 @@ export function createServer(port = process.env.PORT ?? 3001) {
3831 app . set ( 'port' , port )
3932 const server = http . createServer ( app )
4033
41- // mirror the configuration from bin/rerum_v1.js so that programmatic
42- // users get the same keep-alive behaviour as the CLI entry point.
4334 server . keepAliveTimeout = 8 * 1000
4435 server . headersTimeout = 8.5 * 1000
4536
You can’t perform that action at this time.
0 commit comments