🔧 Add env variable for time signature (#4650)

This commit is contained in:
Patryk Garstecki
2024-05-27 16:20:49 +02:00
committed by GitHub
parent e852a21634
commit f40743183e
5 changed files with 13 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ class ToolFileManager:
return False
current_time = int(time.time())
return current_time - int(timestamp) <= 300 # expired after 5 minutes
return current_time - int(timestamp) <= current_app.config.get('FILES_ACCESS_TIMEOUT')
@staticmethod
def create_file_by_raw(user_id: str, tenant_id: str,