How to get the ES node details from plugin to separate nestJS backend

Hi,

I am developing an external plugin using React.

I have a separate nestJS backend for the same, and would like to have all the data retrieval for the plugin to be done in the Backend.

That is, the nestJS backend will fetch the data from ES and send to the calling custom plugin, which will then showcase the same as charts and/or tables.

To implement this, I was thinking of creating the client in the Backend, for which I would need the ES node details (https://:9200) to be passed to the Backend during the first initialization call.

How can I achieve this?

Thanks