🔧 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
commit f40743183e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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')