[server] Add server.name

This commit is contained in:
Jonathan Budzenski 2016-03-23 10:02:49 -05:00
parent 4408069a9b
commit 738e3d0105
2 changed files with 5 additions and 0 deletions

View file

@ -11,6 +11,9 @@
# The maximum payload size in bytes for incoming server requests.
# server.maxPayloadBytes: 1048576
# The Kibana server's name. This is used for display purposes.
# server.name: "your-hostname"
# The URL of the Elasticsearch instance to use for all your queries.
# elasticsearch.url: "http://localhost:9200"

View file

@ -3,6 +3,7 @@ import fs from 'fs';
import path from 'path';
import { get } from 'lodash';
import { randomBytes } from 'crypto';
import os from 'os';
import fromRoot from '../../utils/from_root';
@ -29,6 +30,7 @@ module.exports = () => Joi.object({
}).default(),
server: Joi.object({
name: Joi.string().default(os.hostname()),
host: Joi.string().hostname().default('0.0.0.0'),
port: Joi.number().default(5601),
maxPayloadBytes: Joi.number().default(1048576),