mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[server/connection] just pass tls:true to hapi
This commit is contained in:
parent
ee78fde20f
commit
babdf8d108
1 changed files with 9 additions and 12 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue