diff --git a/src/bootstrap.ts b/src/bootstrap.ts index 37ab4e9..b537b42 100644 --- a/src/bootstrap.ts +++ b/src/bootstrap.ts @@ -28,7 +28,7 @@ export async function bootstrap(version: string): Promise { if (process.env.ENABLE_NGINX) { await cluster.setupNginx(join(__dirname, '..'), cluster.port, proto) } - const server = cluster.setupExpress(proto === 'https') + const server = cluster.setupExpress(proto === 'https' && !process.env.ENABLE_NGINX) try { await cluster.listen() await cluster.enable()