All Versions
DSpace Documentation
...
| Code Block |
|---|
# Configures the primary store to be local or S3. # This value will be used as `incoming` default store inside the `bitstore.xml` # Possible values are: # - 0: to use the `localStore`; # - 1: to use the `s3Store`. # If you want to add additional assetstores, they must be added to that bitstore.xml # and new values should be provided as key-value pairs in the `stores` map of the # `bitstore.xml` configuration. assetstore.index.primary = 1 #---------------------------------------------------------------# #-------------- Amazon S3 Specific Configurations --------------# #---------------------------------------------------------------# # The below configurations are only used if the primary storename # is set to 's3Store' or the 's3Store' is configured as a secondary store # in your bitstore.xml # Enables or disables the store initialization during startup, without initialization the store won't work. # if changed to true, a lazy initialization will be tried on next store usage, be careful an excecption could be thrown assetstore.s3.enabled = true # For using a relative path (xx/xx/xx/xxx...) set to true, default it false # When true: it splits the path into subfolders, each of these # are 2-chars (2-bytes) length, the last is the filename and could have # at max 3-chars (3-bytes). # When false: is used the absolute path using full filename. assetstore.s3.useRelativePath = false # S3 bucket name to store assets in. If unspecified, by default DSpace will # create a bucket based on the hostname of `dspace.ui.url` setting. assetstore.s3.bucketName = your-bucket-name-goes-here # Subfolder to organize assets within the bucket, in case this bucket # is shared. Optional, default is root level of bucket assetstore.s3.subfolder = your-optional-subfolder-goes-here # Optional custom S3 endpoint URI. Leave this blank / commented to use the Amazon default # assetstore.s3.endpoint = # please don't use root credentials in production but rely on the aws credentials default # discovery mechanism to configure them (ENV VAR, EC2 Iam role, etc.) # The preferred approach for security reason is to use the IAM user credentials, but isn't always possible. # More information about credentials here: https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html # More information about IAM usage here: https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/java-dg-roles.html assetstore.s3.awsAccessKey = use-the-role-please assetstore.s3.awsSecretKey = use-the-role-please # If the credentials are left empty, # then this setting is ignored and the default AWS region will be used. # NOTE: AWS is funny about regions, it's probably best to explicitly provide the one you intend to use, # if you want to keep track of where your bitstreams are assetstore.s3.awsRegionName = us-west-2 # The target throughput for transfer requests in Gbps. Higher value means more connections will be established with S3. assetstore.s3.targetThroughputGbps = 10.0 # Sets the minimum part size for transfer parts. Decreasing the minimum part size causes multipart transfer to be split # into a larger number of smaller parts. assetstore.s3.minPartSizeBytes = 8388608 # Specifies the maximum number of S3 connections that should be established during a transfer. # If not provided, it will be based on targetThroughputGbps assetstore.s3.maxConcurrency = # The algorithm the S3 client will use to create a checksum when doing putObject. assetstore.s3.s3ChecksumAlgorithm = CRC32 |
...