After creating an account on Storj DCS, you'll need to create an access grant in order to get S3 credentials.
S3 credentials allow Dataverse to upload and download files from Storj as if it was using the S3 API. To create credentials:
- Click 'Access' on the left menu
- Select 'Create S3 Credentials'
Give your access grant a name such as 'My S3 Creds' and generate a passphrase. Your credentials will be created. These will be used to configure your Dataverse server.
Credentials will only appear once. Be sure to store them, including the Access Key and Secret Key, securely to prevent unwanted access to your files as well as allow you to configure your AWS credentials profile and to decrypt your files later.
Dataverse will use the "AWS credentials profile file" that is configured for the user you run the Payara service with (e.g. /home/dataverse/.aws/config).
Enter the Storj S3 credentials using aws configure
Alternatively, edit the ~/.aws/config file directly.
If you have existing S3 credentials, create an alternative profile for Storj.
If you choose a different bucket name, be sure to change it in the jvm-options below as well.
Create a bucket called dataverse to store your files.
Using asadmin (usually located at /usr/local/payara5/bin/asadmin) run the following commands.
You'll need to delete the existing default storage driver and set a new one using jvm options:
After you've configured your server, the Storj storage option will appear as a when creating a new Dataverse.