mirror of
https://github.com/spacebarchat/server.git
synced 2026-11-04 09:07:50 +00:00
set keepAliveTimeout after super.start
This commit is contained in:
1 parent
58b991df58
commit
9915fe1ff6
1 file changed
+1
-1
+1
-1
@@ -66,7 +66,6 @@ export class CDNServer extends Server {
|
||||
if (trustedProxies) this.app.set("trust proxy", trustedProxies);
|
||||
|
||||
this.app.disable("x-powered-by");
|
||||
this.http.keepAliveTimeout = 10000;
|
||||
|
||||
this.app.use(Authentication);
|
||||
this.app.use(ErrorHandler);
|
||||
@@ -82,6 +81,7 @@ export class CDNServer extends Server {
|
||||
if (process.env.LOG_ROUTES !== "false") console.log("[Server] Route /guilds/:guild_id/users/:user_id/banners registered");
|
||||
|
||||
await super.start();
|
||||
this.http.keepAliveTimeout = 10000; // can't be in configuration section because super.starts initialises it...
|
||||
await SystemdLifecycle.setStatus(`Listening on ${this.options.host}:${this.options.port}...`);
|
||||
await ProcessLifecycle.Ready();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user