Просмотр исходного кода

Merge pull request #136 from rashidkpc/master

Undo protocol detections
Rashid Khan 12 лет назад
Родитель
Сommit
a7ca34fe4a
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      config.js
  2. 1 1
      js/services.js

+ 1 - 1
config.js

@@ -17,7 +17,7 @@ var config = new Settings(
   // By default this will attempt to reach ES at the same host you have
   // elasticsearch installed on. You probably want to set it to the FQDN of your
   // elasticsearch host
-  elasticsearch:    window.location.protocol+"//"+window.location.hostname+":9200",   
+  elasticsearch:    "http://"+window.location.hostname+":9200",   
   // elasticsearch: 'http://localhost:9200',
   kibana_index:     "kibana-int", 
   modules:          ['histogram','map','pie','table','stringquery','sort',

+ 1 - 1
js/services.js

@@ -84,7 +84,7 @@ angular.module('kibana.services', [])
 
 })
 .service('kbnIndex',function($http) {
-    // returns a promise containing an array of all indices matching the index
+  // returns a promise containing an array of all indices matching the index
   // pattern that exist in a given range
   this.indices = function(from,to,pattern,interval) {
     var possible = [];