詳細はプルリクコメントへ
This commit is contained in:
tamaina 2017-08-16 22:24:31 +09:00
parent c73f11ad28
commit f5ed36ced0
1 changed files with 3 additions and 4 deletions

View File

@ -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