[server/connection] just pass tls:true to hapi

This commit is contained in:
spalger 2016-01-21 12:24:33 -07:00
parent ee78fde20f
commit babdf8d108

View file

@ -34,20 +34,17 @@ export default function (kbnServer, server, config) {
return;
}
// for https servers we have some extra settings
const tls = {
key: readFileSync(config.get('server.ssl.key')),
cert: readFileSync(config.get('server.ssl.cert')),
ciphers: tlsCiphers,
// We use the server's cipher order rather than the client's to prevent the BEAST attack
honorCipherOrder: true
};
server.connection({
...connectionOptions,
tls: tls,
listener: httpolyglot.createServer(tls)
tls: true,
listener: httpolyglot.createServer({
key: readFileSync(config.get('server.ssl.key')),
cert: readFileSync(config.get('server.ssl.cert')),
ciphers: tlsCiphers,
// We use the server's cipher order rather than the client's to prevent the BEAST attack
honorCipherOrder: true
})
});
server.ext('onRequest', function (req, reply) {