From 61baa5f8791f3c56bee68cb20a32654806f666b1 Mon Sep 17 00:00:00 2001 From: Fabien Wernli Date: Thu, 19 Jun 2014 11:22:46 +0200 Subject: [PATCH] Fixes #26 --- app.js | 1 + config.js | 1 + 2 files changed, 2 insertions(+) diff --git a/app.js b/app.js index ebfe334..5d29d8b 100644 --- a/app.js +++ b/app.js @@ -70,6 +70,7 @@ function kibana3configjs(req, res) { } else { user = 'unknown'; } + user = user.toLowerCase(); return raw_index.replace(/%user%/gi, user); } else { return raw_index; diff --git a/config.js b/config.js index 1d85451..3cdff3d 100644 --- a/config.js +++ b/config.js @@ -40,6 +40,7 @@ module.exports = { // Config "kibana_es_index": "kibana-int-for-%user%", "which_auth_type_for_kibana_index": "basic" // will use kibana index settings like "kibana-int-for-demo1", "kibana-int-for-demo2" for user demo1 and demo2. // in this case, if you enabled both Google Oauth2 and BasicAuth, and the username of BasicAuth is the boss. + // the index name will be converted to lowercase for technical reasons "kibana_es_index": "kibana-int", // "kibana-int-%user%" "which_auth_type_for_kibana_index": "cas", // google, cas or basic