Skip to main content
Version: 3.3

Configuration

All TypeScript actions rely on a JSON configuration file that contains basic connection details for the various repository services, a section related to the mapping into repository objects and other settings. An example file is located in the config folder.

Text values in the configuration can contain placeholders using the syntax {{environment_variable}}. When the configuration is loaded, each placeholder is replaced with the value of the corresponding environment variable; if the environment variable does not exist, an empty string is used.

Configuration sections

The file contains the following sections:

Here's an example of such a file:

{
"box": {
"baseUrl": "https://repository.docuteam.test/box",
"token": "secretKey"
},
"fedora3": {
"baseUrl": "https://repository.docuteam.test/fedora",
"password": "fedoraAdmin",
"username": "fedoraAdmin"
},
"fedora6": {
"baseUrl": "https://repository.docuteam.test/fcrepo/rest",
"password": "fedoraAdmin",
"username": "fedoraAdmin"
},
"feeder": {
"baseUrl": "http://feeder:3000",
"token": "secretKey"
},
"shares": [
{
"name": "box_development_volume",
"absolutePath": "/some/path/to/folder"
}
],
"submissionAgreementsToPrefixMapping": [
{
"submissionAgreementId": "sa_006-01_dss-01",
"fedora6Prefix": "org_006"
},
{
"submissionAgreementId": "sa_it-01_dss-01",
"fedora6Prefix": "org_it"
},
{
"submissionAgreementId": "sa_all-formats-01_dss-01",
"fedora6Prefix": "org_123"
},
{
"submissionAgreementId": "sa_mus-2_dss-02",
"fedora6Prefix": "org_002"
}
],
"urnService": {
"apiBaseUrl": "https://api.nbn-resolving.org/sandbox/v2",
"credentials": [
{
"namespace": "urn:nbn:ch:bel1",
"username": "SLB31390",
"password": "xxxx"
},
{
"namespace": "urn:nbn:ch:bel2",
"username": "SLB31390",
"password": "xxxx"
}
]
},
"openTextService": {
"baseUrl": "https://opentext.docuteam.test",
"username": "admin",
"password": "admin",
"supId": "1234"
},
"preIngestComponent": {
"baseUrl": "https://pre-ingest.docuteam.test",
"username": "admin",
"password": "admin",
"downloadChunkSizeBytes": 200000000,
"concurrencyLimit": 8
},
"accessComponentQueue": {
"queueUrl": "https://dip-queue.docuteam.test/api/v2/dip/docuteam-abn",
"username": "admin",
"password": "admin"
},
"accessComponentS3": {
"baseUrl": "https://s3.docuteam.ch",
"region": "eu-west-1",
"username": "username",
"bucket": "bucket-name",
"folder": "folder-name",
"accessKey": "xxxx",
"secretKey": "xxxx"
}
}