🔧 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

@@ -77,4 +77,4 @@ class UploadFileParser:
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')