Skip to content
Snippets Groups Projects
Commit 3a03ef20 authored by Anusha Ranganathan's avatar Anusha Ranganathan
Browse files

Read default avlues for file size from env variables

parent 30614fed
No related branches found
No related tags found
2 merge requests!115Tombstone not available for dataset,!77Bump ruby v2.7.7
Pipeline #4715 failed
......@@ -110,4 +110,8 @@ S3_REGION=
S3_FILE_UPLOAD_BUCKET=
# RDMS collections
CRC_1280_COLLECTION='CRC 1280'
\ No newline at end of file
CRC_1280_COLLECTION='CRC 1280'
# File uploads
MAX_FILES=1000
MAX_FILE_SIZE=2.gigabytes
\ No newline at end of file
......@@ -113,4 +113,8 @@ S3_REGION=
S3_FILE_UPLOAD_BUCKET=
# RDMS collections
CRC_1280_COLLECTION='CRC 1280'
\ No newline at end of file
CRC_1280_COLLECTION='CRC 1280'
# File uploads
MAX_FILES=100
MAX_FILE_SIZE=500.megabytes
\ No newline at end of file
......@@ -39,11 +39,11 @@ Hyrax.config do |config|
# config.max_days_between_fixity_checks = 7
# Options to control the file uploader
# config.uploader = {
# limitConcurrentUploads: 6,
# maxNumberOfFiles: 100,
# maxFileSize: 500.megabytes
# }
config.uploader = {
limitConcurrentUploads: 6,
maxNumberOfFiles: ENV['MAX_FILES'] || 100,
maxFileSize: ENV['MAX_FILE_SIZE'] || 500.megabytes
}
# Enables a link to the citations page for a work
# Default is false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment