ローカルでnginxもapacheも動かしていない状況でリバースプロキシが必要になったのでNode.jsでシンプルに。
続きを読むInstall elasticsearch plugins and kibana plugins behind the proxy.
elasticsearch
Set proxy configurations to env $ES_JAVA_OPTS
like below.
ex: installing x-pack
ES_JAVA_OPTS="-Dhttp.proxyHost=proxy.example.com -Dhttp.proxyPort=8888 -Dhttps.proxyHost=proxy.example.com -Dhttps.proxyPort=8888" ./bin/elasticsearch-plugin install x-pack
kibana
Kibana doesn't support proxy yet...
You need to download plugins directory by curl, wget, etc. and run bin/kibana-plugin
.
curl -LO https://artifacts.elastic.co/downloads/packs/x-pack/x-pack-5.4.1.zip ./bin/kibana-plugin install file://$(pwd)/x-pack-5.4.1.zip