Permalink
Switch branches/tags
Nothing to show
Find file Copy path
0be4130 Nov 26, 2017
2 contributors

Users who have contributed to this file

@synhershko @cotzo
39 lines (31 sloc) 741 Bytes
events {
worker_connections 1024;
}
http {
server {
listen 8080;
access_log /var/log/nginx/search.access.log;
auth_basic "Elasticsearch user";
auth_basic_user_file /etc/nginx/conf.d/search.htpasswd;
location / {
proxy_pass http://localhost:5601;
proxy_redirect off;
}
location = /cerebro {
return 301 /cerebro/#connect;
}
location /es/ {
proxy_pass http://localhost:9200;
rewrite ^/es(.*) $1 break;
}
location /cerebro/ {
proxy_pass http://localhost:9000;
rewrite ^/cerebro(.*) $1 break;
}
location = /status {
auth_basic off;
return 200 'gangnam style!';
add_header Content-Type text/plain;
}
}
}