Skip to content

Instantly share code, notes, and snippets.

@markwalkom
Last active December 31, 2015 19:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save markwalkom/8034326 to your computer and use it in GitHub Desktop.
Save markwalkom/8034326 to your computer and use it in GitHub Desktop.
Proxied kibana via nginx This saves your local desktop from connecting directly to the ES cluster.
server {
listen *:80;
server_name kibana.domain.com;
access_log /var/log/nginx/kibana_access.log;
error_log /var/log/nginx/kibana_error.log;
location /kibana {
root /var/www;
index index.html;
}
location ~ /_aliases$ {
proxy_pass http://eshost.domain.com:9200;
proxy_read_timeout 180;
}
location ~ /_nodes$ {
proxy_pass http://eshost.domain.com:9200;
proxy_read_timeout 180;
}
location ~ /*/_search$ {
proxy_pass http://eshost.domain.com:9200;
proxy_read_timeout 180;
}
location ~ /*/_mapping$ {
proxy_pass http://eshost.domain.com:9200;
proxy_read_timeout 180;
}
location ~ ^/kibana-int/dashboard/.*$ {
proxy_pass http://eshost.domain.com:9200;
proxy_read_timeout 180;
}
location ~ ^/kibana-int/temp.*$ {
proxy_pass http://eshost.domain.com:9200;
proxy_read_timeout 180;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment