Skip to content

Instantly share code, notes, and snippets.

@danshultz
Created September 27, 2013 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danshultz/6728765 to your computer and use it in GitHub Desktop.
Save danshultz/6728765 to your computer and use it in GitHub Desktop.
Simple ngxin config Taken from my Kibana three config
server {
listen *:80 ;
access_log /var/log/nginx/kibana.access.log;
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/.htpasswd;
location / {
root /var/www/apps/kibana_three/current;
index index.html index.htm;
}
location ~ ^/_aliases$ {
proxy_pass http://localhost:9200;
proxy_read_timeout 90;
}
location ~ ^/.*/_search$ {
proxy_pass http://localhost:9200;
proxy_read_timeout 90;
}
location ~ ^/kibana-int/dashboard/.*$ {
proxy_pass http://localhost:9200;
proxy_read_timeout 90;
}
location ~ ^/kibana-int/temp.*$ {
proxy_pass http://localhost:9200;
proxy_read_timeout 90;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment