mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Bind Kibana server to localhost
This is a breaking change. The default behaviour will now be that connections from remote users will be rejected.
This commit is contained in:
parent
bfb81efb15
commit
549293d2b1
5 changed files with 8 additions and 6 deletions
|
@ -1,8 +1,10 @@
|
|||
# Kibana is served by a back end server. This setting specifies the port to use.
|
||||
# server.port: 5601
|
||||
|
||||
# This setting specifies the IP address of the back end server.
|
||||
# server.host: "0.0.0.0"
|
||||
# Specifies the public host name to which the Kibana server will bind.
|
||||
# The default is 'localhost', which usually means remote machines will not be able to connect.
|
||||
# To allow connections from remote users, set this parameter to IP or the DNS-name of the machine that is running Kibana.
|
||||
# server.host: "localhost"
|
||||
|
||||
# Enables you to specify a path to mount Kibana at if you are running behind a proxy. This setting
|
||||
# cannot end in a slash.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
.Kibana Configuration Settings
|
||||
[horizontal]
|
||||
`server.port:`:: *Default: 5601* Kibana is served by a back end server. This setting specifies the port to use.
|
||||
`server.host:`:: *Default: "0.0.0.0"* This setting specifies the IP address of the back end server.
|
||||
`server.host:`:: *Default: "localhost"* This setting specifies the host of the back end server.
|
||||
`server.basePath:`:: Enables you to specify a path to mount Kibana at if you are running behind a proxy. This setting
|
||||
cannot end in a slash (`/`).
|
||||
`server.maxPayloadBytes:`:: *Default: 1048576* The maximum payload size in bytes for incoming server requests.
|
||||
|
|
|
@ -295,7 +295,7 @@ deprecated[4.2, The names of several Kibana server properties changed in the 4.2
|
|||
+
|
||||
*alias*: `host` deprecated[4.2]
|
||||
+
|
||||
*default*: `"0.0.0.0"`
|
||||
*default*: `"localhost"`
|
||||
|
||||
`elasticsearch.url` added[4.2]:: The Elasticsearch instance where the indices you want to query reside.
|
||||
+
|
||||
|
|
|
@ -54,7 +54,7 @@ describe('lib/config/config', function () {
|
|||
it('should allow keys in the schema', function () {
|
||||
let config = new Config(schema);
|
||||
let run = function () {
|
||||
config.set('test.client.host', 'http://0.0.0.0');
|
||||
config.set('test.client.host', 'http://localhost');
|
||||
};
|
||||
expect(run).to.not.throwException();
|
||||
});
|
||||
|
|
|
@ -34,7 +34,7 @@ module.exports = () => Joi.object({
|
|||
|
||||
server: Joi.object({
|
||||
name: Joi.string().default(os.hostname()),
|
||||
host: Joi.string().hostname().default('0.0.0.0'),
|
||||
host: Joi.string().hostname().default('localhost'),
|
||||
port: Joi.number().default(5601),
|
||||
maxPayloadBytes: Joi.number().default(1048576),
|
||||
autoListen: Joi.boolean().default(true),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue