Skip to content

File Storage Configuration

Define where uploaded files and application data are stored.

The defaults here will work with no adjustments required if using the provided Docker Compose file.

General Storage Settings

Environment VariableDescriptionTypeDefault Value
FILE_CLOUD_PROVIDERWhich cloud provider to use for file storage.azure, aws, google, s3-compatibles3-compatible

Azure Blob Storage

You can provide a connection string OR an account name + key.

Environment VariableDescriptionTypeDefault Value
AZURE_STORAGE_CONNECTION_STRINGConnection string for Azure Blob Storage.stringnull
AZURE_STORAGE_ACCOUNT_NAMEAzure Storage account name.stringnull
AZURE_STORAGE_ACCOUNT_KEYAccess key for Azure Storage account.stringnull
AZURE_CONTAINER_NAMEName of the Azure Blob Storage container.stringnull

AWS S3

Environment VariableDescriptionTypeDefault Value
AWS_REGIONAWS region for the S3 bucket.stringnull
AWS_ACCESS_KEY_IDAWS Access Key ID for S3 access.stringnull
AWS_SECRET_ACCESS_KEYAWS Secret Access Key for S3 access.stringnull
AWS_BUCKET_NAMEName of the AWS S3 bucket.stringnull

Google Cloud Storage (GCS)

There are two options for Google storage. The first is to provide Application Default Credentials. To do so, set the env var as noted under the Google Gemini & Vertex AI configuration. Make sure the ADC provides appropriate access to the storage. If you set the ADC, you only need to set the GOOGLE_BUCKET_NAME in the list below. If not using ADC, fill in all the variables in this table:

Environment VariableDescriptionTypeDefault Value
GOOGLE_PROJECT_IDGoogle Cloud Project ID.stringnull
GOOGLE_CLIENT_EMAILClient email from GCS service account JSON.stringnull
GOOGLE_PRIVATE_KEYPrivate key from GCS service account JSON.stringnull
GOOGLE_BUCKET_NAMEName of the Google Cloud Storage bucket.stringnull

S3-Compatible Storage (e.g., MinIO or Cloudflare R2)

Environment VariableDescriptionTypeDefault Value
S3_COMPATIBLE_ENDPOINTEndpoint URL for the S3-compatible service (e.g., MinIO).stringhttp://localhost:9000
S3_COMPATIBLE_ACCESS_KEY_IDAccess Key ID for the S3-compatible service.stringminioadmin
S3_COMPATIBLE_SECRET_ACCESS_KEYSecret Access Key for the S3-compatible service.stringminioadmin
S3_COMPATIBLE_BUCKET_NAMEBucket name in the S3-compatible service.stringacademicid
S3_COMPATIBLE_FORCE_PATH_STYLEWhether to force path-style addressing (true or false). Defaults to true if not set.booleantrue
S3_COMPATIBLE_ENDPOINT_SERVICEService name as defined in the Docker Compose file if storage is within the same Compose project as the AcademicID services (e.g., minio) – this is required for communication between Docker Containers, see the example.env file for more information.stringminio
S3_COMPATIBLE_REGIONRegion for the S3-compatible service.stringauto

AcademicID - Smart & ethical AI for academia