Last active
December 31, 2015 19:29
-
-
Save markwalkom/8034326 to your computer and use it in GitHub Desktop.
Proxied kibana via nginx This saves your local desktop from connecting directly to the ES cluster.
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 *:80; | |
server_name kibana.domain.com; | |
access_log /var/log/nginx/kibana_access.log; | |
error_log /var/log/nginx/kibana_error.log; | |
location /kibana { | |
root /var/www; | |
index index.html; | |
} | |
location ~ /_aliases$ { | |
proxy_pass http://eshost.domain.com:9200; | |
proxy_read_timeout 180; | |
} | |
location ~ /_nodes$ { | |
proxy_pass http://eshost.domain.com:9200; | |
proxy_read_timeout 180; | |
} | |
location ~ /*/_search$ { | |
proxy_pass http://eshost.domain.com:9200; | |
proxy_read_timeout 180; | |
} | |
location ~ /*/_mapping$ { | |
proxy_pass http://eshost.domain.com:9200; | |
proxy_read_timeout 180; | |
} | |
location ~ ^/kibana-int/dashboard/.*$ { | |
proxy_pass http://eshost.domain.com:9200; | |
proxy_read_timeout 180; | |
} | |
location ~ ^/kibana-int/temp.*$ { | |
proxy_pass http://eshost.domain.com:9200; | |
proxy_read_timeout 180; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment