KibanaをNginxのリバースプロキシで動かす
環境
- Ubuntu 16.04
- Elasticsearch 5.0.0 GA
- Kibana 5.0.0
使用するIPは、192.168.0.2とする。
メモ
試行錯誤した結果、設定ファイルのLocationディレクティブをこうすると動作した。
location ~ (/app/kibana|/bundles/|/status|/elasticsearch|/plugins|/timelion|/console) { proxy_pass http://192.168.0.2:5601; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Host $http_host; }