set nats reply expiration

This commit is contained in:
wh1te909 2023-04-07 02:32:41 +00:00
parent b1e67a1ed3
commit c81aa2d6fe
1 changed files with 5 additions and 1 deletions

View File

@ -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"
)
},
},
}
)