add working solution for head

This commit is contained in:
Marco Ochse 2017-02-27 17:42:34 +00:00
parent 6298afae4a
commit 9fbdcf80f5
2 changed files with 17 additions and 3 deletions

View file

@ -111,7 +111,21 @@ server {
rewrite /kibana/(.*)$ /$1 break;
}
### Head plugin
### ES
location /es/ {
proxy_pass http://localhost:64298/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-NginX-Proxy true;
rewrite /es/(.*)$ /$1 break;
}
### Head standalone
location /myhead/ {
proxy_pass http://localhost:64302/;
proxy_http_version 1.1;

View file

@ -11,8 +11,8 @@
<center>
<a href="/tpotweb.html" target="_top" class="btn">Home</a>
<a href="/kibana" target="main" class="btn">Kibana</a>
<a href="/myhead/" target="main" class="btn">ES Head Plugin</a>
<a href="/ui/" target="main" class="btn">UI-For-Docker</a>
<a href="/myhead/" target="main" class="btn">ES Head</a>
<a href="/ui/" target="main" class="btn">Portainer</a>
<a href="/wetty/ssh/tsec" target="main" class="btn">WebSSH</a>
<a href="/netdata/" target="_blank" class="btn">Netdata</a>
</center>