Created
September 8, 2015 17:41
-
-
Save evoxco/7dafae417c31f69db40c to your computer and use it in GitHub Desktop.
NginX configuration for Kibana/ElasticSearch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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