Skip to main content
Version: 1.0

Configuration

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

Configuration sections

The file contains a first section with connection information related to the systems used in one or several of the actions: docuteam box, Fedora 6, Fedora 3 (if doing migrations), and docuteam feeder.

In the second part, a mapping table is expected that links a given submission agreement to a Fedora 6 prefix. The prefix indicates a top-level resource, to which the resources from a SIP are attached subsequently.

Here's an example of such a file:

{
"box": {
"baseUrl": "http://box:3001",
"token": "121fa45c74c1132c1f751b1e857c9368"
},
"fedora3": {
"baseUrl": "http://fedora3:8080/fedora",
"password": "fedoraAdmin",
"username": "fedoraAdmin"
},
"fedora6": {
"baseUrl": "http://fedora6:8080/fcrepo/rest",
"password": "fedoraAdmin",
"username": "fedoraAdmin"
},
"feeder": {
"baseUrl": "http://feeder:3000",
"token": "6snpah3Z8Ma2kAxWEJBVANzK"
},
"submissionAgreementsToPrefixMapping": [
{
"submissionAgreementId": "sa_it-01_dss-01",
"fedora6Prefix": "org_it"
},
{
"submissionAgreementId": "sa_all-formats-01_dss-01",
"fedora6Prefix": "org_123"
}
]
}