From f5ed36ced0a881ffb243e6898eddf24c4084a50b Mon Sep 17 00:00:00 2001 From: tamaina Date: Wed, 16 Aug 2017 22:24:31 +0900 Subject: [PATCH] =?UTF-8?q?#700=20=E8=A9=B3=E7=B4=B0=E3=81=AF=E3=83=97?= =?UTF-8?q?=E3=83=AB=E3=83=AA=E3=82=AF=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88?= =?UTF-8?q?=E3=81=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/server.ts b/src/server.ts index 240800c1e2..1429cdfebf 100644 --- a/src/server.ts +++ b/src/server.ts @@ -3,8 +3,7 @@ */ import * as fs from 'fs'; -import * as http from 'http'; -import * as https from 'https'; +import * as http2 from 'http2'; import * as cluster from 'cluster'; import * as express from 'express'; import * as morgan from 'morgan'; @@ -56,12 +55,12 @@ app.use(require('./web/server')); * Create server */ const server = config.https.enable ? - https.createServer({ + http2.createSecureServer({ key: fs.readFileSync(config.https.key), cert: fs.readFileSync(config.https.cert), ca: fs.readFileSync(config.https.ca) }, app) : - http.createServer(app); + http2.createServer(app); /** * Steaming