Skip to content

Instantly share code, notes, and snippets.

@evoxco
Created September 8, 2015 17:41
Show Gist options
  • Save evoxco/7dafae417c31f69db40c to your computer and use it in GitHub Desktop.
Save evoxco/7dafae417c31f69db40c to your computer and use it in GitHub Desktop.
NginX configuration for Kibana/ElasticSearch
server {
listen *:443;
ssl on;
ssl_certificate /etc/ssl/certs/cacert.pem;
ssl_certificate_key /etc/ssl/private/privkey.pem;
server_name nsm01;
fastcgi_param HTTPS on;
fastcgi_param HTTP_SCHEME https;
location / {
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/conf.d/search.htpasswd;
proxy_pass http://127.0.0.1:9200;
proxy_read_timeout 90;
}
location /ntop {
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/conf.d/search.htpasswd;
proxy_pass http://127.0.0.1:3000;
proxy_read_timeout 90;
}
location /Qbana {
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/conf.d/search.htpasswd;
root /usr/share/elasticsearch/plugins;
index index.html index.htm;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment