1
0
Fork 0

set signed s3 url expiry with env value

Adds S3_SIGNED_URL_EXPIRY val to .env and settings (defaults to 15 mins)
Note that this is reset every time the user loads the exports page
and is independent of the _creation_ of export files.
This commit is contained in:
Hugh Rundle 2024-03-24 20:53:49 +11:00
parent 5b71e94888
commit dd27684d4b
No known key found for this signature in database
GPG key ID: A7E35779918253F9
3 changed files with 15 additions and 4 deletions

View file

@ -71,6 +71,9 @@ ENABLE_THUMBNAIL_GENERATION=true
USE_S3=false
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
# seconds for signed S3 urls to expire
# this is currently only used for user export files
S3_SIGNED_URL_EXPIRY=900
# Commented are example values if you use a non-AWS, S3-compatible service
# AWS S3 should work with only AWS_STORAGE_BUCKET_NAME and AWS_S3_REGION_NAME