How can i access elasticsearch behind the nginx proxy server using python

Hi, I want to access to elasticsearch using python.
The problem is, elasticsearch is behind the nginx proxy server.
So how can i make instance?

i tried below but it doesn't work.
from elasticsearch import Elasticsearch
es = Elasticsearch({'host':'my nginx ip', 'port': 'my nginx port'})

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.