diff --git a/Prototype/server/.env.example b/Prototype/server/.env.example index 32e22a9..f2f6554 100644 --- a/Prototype/server/.env.example +++ b/Prototype/server/.env.example @@ -1,8 +1,14 @@ PUBLIC_KEY= REALM_URL= + PORT= -MINIO_HOST= -MINIO_PORT= +MINIO_HOST=localhost +MINIO_PORT=9000 MINIO_ACCESS_KEY= MINIO_SECRET_KEY= + +ELASTICSEARCH_PROTOCOL=http +ELASTICSEARCH_HOST=localhost +ELASTICSEARCH_PORT=9200 + diff --git a/Prototype/server/src/elasticsearch/index.ts b/Prototype/server/src/elasticsearch/index.ts index b1c1552..604bc7a 100644 --- a/Prototype/server/src/elasticsearch/index.ts +++ b/Prototype/server/src/elasticsearch/index.ts @@ -1,7 +1,7 @@ import { Client } from "@elastic/elasticsearch"; const esClient = new Client({ - node: "http://localhost:9200", + node: `${process.env.ELASTICSEARCH_PROTOCOL}://${process.env.ELASTICSEARCH_HOST}:${process.env.ELASTICSEARCH_PORT}`, }); export default esClient;