From e8f950432d59a359607903d5d3ad135fa27a2425 Mon Sep 17 00:00:00 2001 From: Aleksandr Tereshchenko Date: Fri, 8 Nov 2024 14:38:09 +0200 Subject: [PATCH] nats url: Revert to using env vars --- importer-api/src/utils/stan.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/importer-api/src/utils/stan.js b/importer-api/src/utils/stan.js index 17a9db30..b085d459 100644 --- a/importer-api/src/utils/stan.js +++ b/importer-api/src/utils/stan.js @@ -1,8 +1,8 @@ const natsStreaming = require('node-nats-streaming') -const { HOSTNAME, NATS_TOKEN } = process.env +const { HOSTNAME, NATS_URI, NATS_TOKEN } = process.env const stan = natsStreaming.connect('importer-nats', HOSTNAME, { - url: 'nats://nats-importer:4222', + url: NATS_URI, token: NATS_TOKEN, maxReconnectAttempts: -1, waitOnFirstConnect: true,