1

我有一个运行 Elasticsearch 和 Kibana 的 Vagrant VM。Kibana 目前由 Mongrel2 根据以下配置提供服务

kibana_directory = Dir(base='kibana/',
                    index_file='index.html',
                    default_ctype='text/plain')

myhost = Host(name = 'localhost', routes = {
  '/logs/': kibana_directory
})

Elasticsearch 在端口 9200 上运行。但是,当我尝试查看 Kibana 时,它无法正确加载,在浏览器中出现以下错误

[blocked] The page at 'https://dev.demo.vm/logs/' was loaded over HTTPS, but 
ran insecure content from 'http://dev.demo.vm:9200/_nodes': this content should 
also be loaded over HTTPS.

问题似乎很明显,Mongrel2 正在提供内容,https但 Elasticsearch 被查询http,因此 Kibana(服务于https)无法与其通信。我想保留httpsfor Mongrel2,但我不知道该怎么做才能让 Kibana 正常工作。我应该在 Mongrel2 中使用某种代理吗?有直接的解决方案吗?

4

0 回答 0