mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[6.x] Make "legacy" Kibana server aware of connection protocol. (#20775)
This commit is contained in:
parent
31c633eb00
commit
2d8ff67ace
1 changed files with 7 additions and 0 deletions
|
@ -38,10 +38,17 @@ export default async function (kbnServer, server, config) {
|
|||
|
||||
// Note that all connection options configured here should be exactly the same
|
||||
// as in `getServerOptions()` in the new platform (see `src/core/server/http/http_tools`).
|
||||
//
|
||||
// The only exception is `tls` property: TLS is entirely handled by the new
|
||||
// platform and we don't have to duplicate all TLS related settings here, we just need
|
||||
// to indicate to Hapi connection that TLS is used so that it can use correct protocol
|
||||
// name in `server.info` and `request.connection.info` that are used throughout Kibana.
|
||||
//
|
||||
// Any change SHOULD BE applied in both places.
|
||||
server.connection({
|
||||
host: config.get('server.host'),
|
||||
port: config.get('server.port'),
|
||||
tls: config.get('server.ssl.enabled'),
|
||||
listener: kbnServer.newPlatform.proxyListener,
|
||||
state: {
|
||||
strictHeader: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue