2017-09-28 1 views
0

포트 9200의 서버에서 aws elastic 검색 엔드 포인트에 대해 역방향 프록시를 설정했습니다./kibana URI가있는 특정 서버에서 kibana에 액세스하려고합니다. 그러나 나는 아래의 오류가 점점.키바 나가 제대로로드되지 않았습니다. nginx 리버스 프록시로 설정 한 후

Kibana did not load properly. Check the server output for more information. 

Nginx에 코드 : ElasticSearch를 들어

: 내 앱에 대한

키바

를 들어
server { 
    listen 9002; 
    location/{ 
     proxy_set_header X-Forwarded-For $remote_addr; 
     proxy_set_header Host $http_host; 
     proxy_pass   https://search.us-west-2.es.amazonaws.com; 
    } 
} 

location /kibana/ { 
     proxy_set_header Host https://search-es.us-west-2.es.amazonaws.com/_plugin/kibana/; 
     proxy_set_header X-Real-IP 34.214.177.249; 
     proxy_pass https://search-es.us-west-2.es.amazonaws.com/_plugin/kibana/; 
     proxy_redirect https://search-es.us-west-2.es.amazonaws.com/_plugin/kibana/ http://ab.cd.ef.g/kibana/; 
     } 

:

location/{ 
       proxy_redirect off; 
       proxy_pass http://127.0.0.1:3054; 
       proxy_http_version 1.1; 
       proxy_set_header Upgrade $http_upgrade; 
       proxy_set_header Connection 'upgrade'; 
       proxy_set_header Host $host; 
       } 

나는 또한 아래 콘솔 오류를 많이 받고있다.

Failed to load resource: the server responded with a status of 502 (Bad Gateway). 

http://ab.cd.ef.g//_plugin/kibana/ui/favicons/favicon.ico 

모든 힌트를 얻을 수 있습니다.

+0

Elasticsearch 서비스 도메인의 액세스 정책은 무엇입니까? –

+0

'https : //search-es.us-west-2.es.amazonaws '대신'https : // search-es.us-west-2.es.amazonaws.com/kibana /'에 배포 해보십시오. .com/kibana /'리버스 프록시를 사용하면 더 쉽게 만들 수 있습니다. –

+0

@JamieStarke 설정 한 nginx가있는이 서버의 특정 IP 만 허용됩니다. –

답변

0

당신은 당신이 프록시 뒤에 를 실행하는 경우에 키바를 장착 할 수있는 경로를 지정할 수 있습니다 server.basePath

/kibana에 설정해야합니다. 이는 Kibana가 생성 한 URL에만 영향을 미치며 프록시는 요청을 Kibana에 전달하기 전에 basePath 값을 제거해야합니다. 이 설정은 슬래시 (/)로 끝날 수 없습니다.

+0

AWS ElasticSearch를 사용하고 있습니다. 이 구성을 바꿀 수 있습니까? –

+1

키바나 구성이므로'kibana.yml'에 들어갑니다. Elastic Cloud를 사용하면 Kibana가 제공되며 직접 호스팅하는 것에 대해 걱정할 필요가 없습니다. –

+1

하나의 서버 IP에서만 My Elastic Cloud로 트래픽을 라우팅하려고합니다. 이 서버는 VPC에 속합니다. AWS에는 VPC에서 Elastic Search를 사용할 수있는 조항이 없으므로이 방법을 통해이를 수행하고 있습니다. –

관련 문제