From 718ebf525d7730afcce9a0beabbe7f595ec13da2 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Fri, 31 May 2024 14:22:02 +0300 Subject: [PATCH] docker-compose.yml: add envTELEGRAM_URL_SEND_AUTH_MESSAGE --- apps/api/src/config/schema/env.ts | 2 +- apps/api/src/ldap-tfa/ldap-tfa.controller.ts | 2 +- docker-compose.yml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/api/src/config/schema/env.ts b/apps/api/src/config/schema/env.ts index 3571192..628a5e8 100644 --- a/apps/api/src/config/schema/env.ts +++ b/apps/api/src/config/schema/env.ts @@ -23,7 +23,7 @@ const envSchema = z.object({ .string() .transform((val) => Number.parseInt(val, 10)) .default('6379'), - TELEGRAM_SERVICE_URL_SEND_MESSAGE: z.string(), + TELEGRAM_URL_SEND_AUTH_MESSAGE: z.string(), }); export default envSchema; diff --git a/apps/api/src/ldap-tfa/ldap-tfa.controller.ts b/apps/api/src/ldap-tfa/ldap-tfa.controller.ts index b3e78ab..f7e1d9c 100644 --- a/apps/api/src/ldap-tfa/ldap-tfa.controller.ts +++ b/apps/api/src/ldap-tfa/ldap-tfa.controller.ts @@ -66,7 +66,7 @@ export class LdapTfaController extends LdapController { this.cacheManager.set(authId, user); return axios - .get(env.TELEGRAM_SERVICE_URL_SEND_MESSAGE, { + .get(env.TELEGRAM_URL_SEND_AUTH_MESSAGE, { params: { authId, employeeID, diff --git a/docker-compose.yml b/docker-compose.yml index 9c5ee6a..116d869 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,6 +27,7 @@ services: - COOKIE_TOKEN_MAX_AGE=${COOKIE_TOKEN_MAX_AGE} - REDIS_HOST=redis - MONGO_HOST=mongo + - TELEGRAM_URL_SEND_AUTH_MESSAGE=${TELEGRAM_URL_SEND_AUTH_MESSAGE} restart: always networks: - auth_network