I'm getting closer... but still don't work
location /kibana/ {
subs_filter_types text/html text/css text/xml;
subs_filter href=" href="http://publicwebserver.example.com/kibana/;
subs_filter src=" src="http://publicwebserver.example.com/kibana/;
proxy_pass http://elkserver.example.net/;
proxy_read_timeout 90;
}
location /elasticsearch/_aliases$ {
proxy_pass http://elkserver.example.net/elasticsearch/_aliases;
proxy_read_timeout 90;
}
location /elasticsearch/.*/_aliases$ {
proxy_pass http://elkserver.example.net/;
proxy_read_timeout 90;
}
location /elasticsearch/_nodes$ {
proxy_pass http://elkserver.example.net/elasticsearch/_nodes;
proxy_read_timeout 90;
}
location /elasticsearch/.*/_search$ {
proxy_pass http://elkserver.example.net/;
proxy_read_timeout 90;
}
location /elasticsearch/.*/_mapping$ {
proxy_pass http://elkserver.example.net/;
proxy_read_timeout 90;
}
At least I can load js, css and lot of stuff...
now I'm dealing on how to proxy elasticsearch/_ndes _search etc, atc properly to the internal elkserver in order to it perform the actual query to elasticsearch.
Will post if further success, maybe someone is interested
location /kibana/ {
subs_filter_types text/html text/css text/xml;
subs_filter href=" href="http://publicwebserver.example.com/kibana/;
subs_filter src=" src="http://publicwebserver.example.com/kibana/;
proxy_pass http://elkserver.example.net/;
proxy_read_timeout 90;
}
location /elasticsearch/_aliases$ {
proxy_pass http://elkserver.example.net/elasticsearch/_aliases;
proxy_read_timeout 90;
}
location /elasticsearch/.*/_aliases$ {
proxy_pass http://elkserver.example.net/;
proxy_read_timeout 90;
}
location /elasticsearch/_nodes$ {
proxy_pass http://elkserver.example.net/elasticsearch/_nodes;
proxy_read_timeout 90;
}
location /elasticsearch/.*/_search$ {
proxy_pass http://elkserver.example.net/;
proxy_read_timeout 90;
}
location /elasticsearch/.*/_mapping$ {
proxy_pass http://elkserver.example.net/;
proxy_read_timeout 90;
}
At least I can load js, css and lot of stuff...
now I'm dealing on how to proxy elasticsearch/_ndes _search etc, atc properly to the internal elkserver in order to it perform the actual query to elasticsearch.
Will post if further success, maybe someone is interested