koursaros-ai / nboost

NBoost is a scalable, search-api-boosting platform for deploying transformer models to improve the relevance of search results on different platforms (i.e. Elasticsearch)
Apache License 2.0
674 stars 69 forks source link

Using nboost with Elastic Cloud/AWS Elasticsearch service #54

Closed cabhijith closed 4 years ago

cabhijith commented 4 years ago

Hi,

First of all, thanks for this awesome project!

I have gone through the examples in the docs and all of them were on a local server. I would really appreciate if I can get an example/docs for deploying this with Elastic Cloud/AWS Elasticsearch service.

Will I have to host the proxy somewhere and point it towards my ES index?

Thanks, Abhijith

pertschuk commented 4 years ago

Thanks 👍

Yes, you could host NBoost anywhere you'd like (from docker image or python) and point it at Elastic cloud IP and port. The only thing to consider would be what SSL / authentication you're using, because right now it's only designed to be used on unencrypted connections...

cabhijith commented 4 years ago

Hi @pertschuk , Dang! That will be a problem I guess for production systems. Maybe an IP based authentication policy?

Anyways, all the best!

huseinzol05 commented 4 years ago

You need to proxy using nginx something like that to uncrypted network, example,

server {
        listen 9200;

        location ~ .* {
            proxy_pass https://your-aws-es-vpc:9200;
            proxy_set_header X-Forwarded-Proto https;
            }
        }

and use nginx host ip address to connect to nboost.