Skip to content

Instantly share code, notes, and snippets.

@rashidkpc
Created March 19, 2013 17:56
Show Gist options
  • Save rashidkpc/5198474 to your computer and use it in GitHub Desktop.
Save rashidkpc/5198474 to your computer and use it in GitHub Desktop.
server {
listen *:80 ;
server_name my.host.org;
location ~ ^/_aliases$ {
proxy_pass http://127.0.0.1:9200;
proxy_read_timeout 90;
}
location ~ ^/.*/_search$ {
proxy_pass http://127.0.0.1:9200;
proxy_read_timeout 90;
}
location / {
root /usr/share/kibana3;
index index.html;
}
location ~ ^/kibana-int/dashboard/.*$ {
proxy_pass http://127.0.0.1:9200;
proxy_read_timeout 90;
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/conf.d/my.host.org.htpasswd;
}
location ~ ^/kibana-int/temp.*$ {
proxy_pass http://127.0.0.1:9200;
proxy_read_timeout 90;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment