chore: update env

This commit is contained in:
Methapon2001 2023-11-21 09:13:21 +07:00
parent 0b75f34fa8
commit 911db7802c
No known key found for this signature in database
GPG key ID: 849924FEF46BD132
2 changed files with 9 additions and 3 deletions

View file

@ -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

View file

@ -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;