Skip to main content

Storage Options

Storage

When configuring storage, a mix of credentials and ENV variables are used

You can edit your credentials file with the following command.

EDITOR="vim --nofork" bin/rails credentials:edit --environment production

When selecting a storage service to use, set the following ENV variable to the service you want.

ENV variableDescriptionDefault
RAILS_STORAGE_SERVICEWhich type of storage to use. One of [local,amazon,google,microsoft].local

Default values below that contain #{Rails.env} refer to the environment the IRIDA Next is running in. In production, this is production

Local

Files are stored locally in the storage/ directory.

No additional options are needed for this configuration.

Amazon S3

Credentials

aws:
access_key_id:
secret_access_key:
ENV variableDescriptionDefault
S3_REGIONS3 regionus-east-1
S3_BUCKET_NAMES3 bucket nameyour_own_bucket-#{Rails.env}

Google Cloud Storage

ENV variableDescriptionDefault
GCS_PROJECT_NAMEGoogle Cloud Storage project nameyour_project
GCS_KEYFILERelative path to gcs.keyfilegcs.keyfile
GCS_BUCKET_NAMEGoogle Cloud Storage bucket nameyour_own_bucket-#{Rails.env}

Microsoft Azure

Credentials

azure_storage:
storage_access_key:
ENV variableDescriptionDefault
AZURE_STORAGE_ACCOUNT_NAMEStorage Account Nameyour_account_name
AZURE_STORAGE_CONTAINER_NAMEStorage Container Nameyour_container_name-#{Rails.env}
AZURE_STORAGE_BLOB_HOSTOptional. Storage Blob HostN/A