Https 在Mongrel2下运行Kibana和Elasticsearch
我有一个流浪的虚拟机运行Elasticsearch和Kibana。Mongrel2目前正在按照以下配置为Kibana提供服务Https 在Mongrel2下运行Kibana和Elasticsearch,https,proxy,elasticsearch,kibana,mongrel2,Https,Proxy,elasticsearch,Kibana,Mongrel2,我有一个流浪的虚拟机运行Elasticsearch和Kibana。Mongrel2目前正在按照以下配置为Kibana提供服务 kibana_directory = Dir(base='kibana/', index_file='index.html', default_ctype='text/plain') myhost = Host(name = 'localhost', routes = { '/logs/
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
提供)无法与其通信。我想为Mongrel2保留https
,但我不知道该怎么做才能让Kibana正常工作。我应该在Mongrel2中使用某种代理吗?有一个简单的解决方案吗