# Elasticsearch and NestJs multi cluster

**URL:** <https://discuss.elastic.co/t/elasticsearch-and-nestjs-multi-cluster/307989>\
**Category:** Elasticsearch\
**Created:** [June 23, 2022, 10:23am UTC](https://discuss.elastic.co/t/elasticsearch-and-nestjs-multi-cluster/307989 "2022-06-23T10:23:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![meyer1](https://avatars.discourse-cdn.com/v4/letter/m/b487fb/32.png) [@meyer1](https://discuss.elastic.co/u/meyer1)\
**Post date:** [June 23, 2022, 10:23am UTC](https://discuss.elastic.co/t/elasticsearch-and-nestjs-multi-cluster/307989/1 "2022-06-23T10:23:41Z")

</div>

Hello everyone, I have a small problem I want to produce an elasticsearch via an app NestJs. I have 3 hosts but I don't know how to configure my "search.module" "search.providers" and "search.service". Should I do something in my environment variables?

Thanks in advance for your help !

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 21, 2022, 10:24am UTC](https://discuss.elastic.co/t/elasticsearch-and-nestjs-multi-cluster/307989/2 "2022-07-21T10:24:19Z")

</div>

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