mirror of
https://github.com/kyantech/Palmr.git
synced 2025-10-23 06:11:58 +00:00
- Introduced the PRESIGNED_URL_EXPIRATION environment variable across multiple configuration files to allow users to customize the expiration time for presigned URLs. - Updated documentation to include details on the new variable, its default value, and guidance on choosing appropriate expiration times based on security and usability needs. - Refactored relevant code to utilize the new configuration option for generating presigned URLs in the file and reverse share services.
19 lines
717 B
Plaintext
19 lines
717 B
Plaintext
# FOR FILESYSTEM STORAGE ENV VARS
|
|
ENABLE_S3=false
|
|
DISABLE_FILESYSTEM_ENCRYPTION=true
|
|
# ENCRYPTION_KEY=change-this-key-in-production-min-32-chars # Required only if encryption is enabled (DISABLE_FILESYSTEM_ENCRYPTION=false)
|
|
DATABASE_URL="file:./palmr.db"
|
|
|
|
# FOR USE WITH S3 COMPATIBLE STORAGE
|
|
# ENABLE_S3=true
|
|
# S3_ENDPOINT=
|
|
# S3_PORT=
|
|
# S3_USE_SSL=
|
|
# S3_ACCESS_KEY=
|
|
# S3_SECRET_KEY=
|
|
# S3_REGION=
|
|
# S3_BUCKET_NAME=
|
|
# S3_FORCE_PATH_STYLE=
|
|
# S3_REJECT_UNAUTHORIZED=true # Set to false to disable strict SSL certificate validation for self-signed certificates (optional, defaults to true)
|
|
# PRESIGNED_URL_EXPIRATION=3600 # Duration in seconds for presigned URL expiration (optional, defaults to 3600 seconds / 1 hour)
|