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;