|
9 | 9 | <map> |
10 | 10 | <entry key="0" value-ref="localStore"/> |
11 | 11 | <entry key="1" value-ref="s3Store"/> |
| 12 | + <entry key="2" value-ref="s3TempStore"/> |
12 | 13 | </map> |
13 | 14 | </property> |
14 | 15 | </bean> |
|
40 | 41 | <property name="endpoint" value="${assetstore.s3.endpoint}"/> |
41 | 42 | </bean> |
42 | 43 |
|
| 44 | + <bean name="s3TempStore" class="org.dspace.storage.bitstore.S3BitStoreService" scope="singleton" lazy-init="true"> |
| 45 | + <property name="enabled" value="${assetstore.s3.temp.enabled}"/> |
| 46 | + <!-- AWS Security credentials, with policies for specified bucket --> |
| 47 | + <property name="awsAccessKey" value="${assetstore.s3.awsAccessKey}"/> |
| 48 | + <property name="awsSecretKey" value="${assetstore.s3.awsSecretKey}"/> |
| 49 | + <property name="awsSessionToken" value="${assetstore.s3.awsToken}"/> |
| 50 | + <property name="useRelativePath" value="${assetstore.s3.useRelativePath}"/> |
| 51 | + |
| 52 | + <!-- S3 bucket name to store assets in. example: longsight-dspace-auk --> |
| 53 | + <property name="bucketName" value="${assetstore.s3.temp.bucketName}"/> |
| 54 | + |
| 55 | + <!-- AWS S3 Region to use: {us-east-1, us-west-1, eu-west-1, eu-central-1, ap-southeast-1, ... } --> |
| 56 | + <!-- Optional, sdk default is us-east-1 --> |
| 57 | + <property name="awsRegionName" value="${assetstore.s3.awsRegionName}"/> |
| 58 | + |
| 59 | + <!-- Subfolder to organize assets within the bucket, in case this bucket is shared --> |
| 60 | + <!-- Optional, default is root level of bucket --> |
| 61 | + <property name="subfolder" value="${assetstore.s3.temp.subfolder}"/> |
| 62 | + <property name="maxConnections" value="${assetstore.s3.maxConnections}"/> |
| 63 | + <property name="connectionTimeout" value="${assetstore.s3.connectionTimeout}"/> |
| 64 | + <property name="endpoint" value="${assetstore.s3.endpoint}"/> |
| 65 | + </bean> |
| 66 | + |
43 | 67 | <!-- <bean name="localStore2 ... --> |
44 | 68 | <!-- <bean name="s3Store2 ... --> |
45 | 69 | </beans> |
0 commit comments