Created
April 19, 2014 11:49
-
-
Save wesyoung/11082141 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # | |
| # Nginx proxy for Elasticsearch + Kibana | |
| # | |
| # In this setup, we are password protecting the saving of dashboards. You may | |
| # wish to extend the password protection to all paths. | |
| # | |
| # Even though these paths are being called as the result of an ajax request, the | |
| # browser will prompt for a username/password on the first request | |
| # | |
| # If you use this, you'll want to point config.js at http://localhost:80/ instead of | |
| # http://localhost:9200 | |
| # | |
| ## FOR IMPROVED SECURITY | |
| ## http://www.ragingcomputer.com/2014/02/securing-elasticsearch-kibana-with-nginx | |
| server { | |
| listen *:80 ; | |
| server_name kibana.myhost.org; | |
| access_log /var/log/kibana.access.log; | |
| error_log /var/log/kibana.error.log; | |
| location /kibana { | |
| root /var/www; | |
| index index.html index.htm; | |
| } | |
| location ~ ^/_aliases$ { | |
| proxy_pass http://127.0.0.1:9200; | |
| proxy_read_timeout 90; | |
| } | |
| location ~ ^/.*/_aliases$ { | |
| proxy_pass http://127.0.0.1:9200; | |
| proxy_read_timeout 90; | |
| } | |
| location ~ ^/_nodes$ { | |
| 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 ~ ^/.*/_mapping { | |
| 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