docker-compose.yml: add envTELEGRAM_URL_SEND_AUTH_MESSAGE

This commit is contained in:
vchikalkin 2024-05-31 14:22:02 +03:00
parent ab1e8d44c9
commit 718ebf525d
3 changed files with 3 additions and 2 deletions

View File

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

View File

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

View File

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