From c81aa2d6fe02327b658b9b693fade54944a2ab30 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Fri, 7 Apr 2023 02:32:41 +0000 Subject: [PATCH] set nats reply expiration --- api/tacticalrmm/tacticalrmm/utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/tacticalrmm/tacticalrmm/utils.py b/api/tacticalrmm/tacticalrmm/utils.py index a8dbb73d..8e8f2877 100644 --- a/api/tacticalrmm/tacticalrmm/utils.py +++ b/api/tacticalrmm/tacticalrmm/utils.py @@ -185,7 +185,11 @@ def reload_nats() -> None: "permissions": { "publish": {"allow": agent.agent_id}, "subscribe": {"allow": agent.agent_id}, - "allow_responses": True, + "allow_responses": { + "expires": getattr( + settings, "NATS_ALLOW_RESPONSE_EXPIRATION", "1435m" + ) + }, }, } )