Skip to content

Commit

Permalink
[server] remove directory listing support
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed Apr 6, 2016
1 parent 24c7043 commit 8df68fc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/server/config/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ module.exports = () => Joi.object({
disableProtection: Joi.boolean().default(false),
token: Joi.string().optional().notes('Deprecated')
}).default(),
staticDirectoryListings: Joi.boolean().default(Joi.ref('$dev')),
}).default(),

logging: Joi.object().keys({
Expand Down
2 changes: 1 addition & 1 deletion src/server/http/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = async function (kbnServer, server, config) {
handler: {
directory: {
path: dirPath,
listing: config.get('server.staticDirectoryListings'),
listing: false,
lookupCompressed: true
}
},
Expand Down

0 comments on commit 8df68fc

Please sign in to comment.