This reference documentation details all available configuration options that can be specified in a collection’s configuration file to configure the Open Terms Archive engine.
As an example, see the production configuration file of the Demo collection.
trackingSchedule
string
30 */12 * * *
collectionPath
string
./
../collections/demo-declarations
The recorder section manages how versions and snapshots of terms are stored, supporting multiple storage backends.
recorder.versions.storage
object
recorder.snapshots.storage
object
The fetcher section configures how the engine retrieves documents from the web.
fetcher.waitForElementsTimeout
number
10000
The notifier section sets up how notifications are sent when new versions of terms are recorded.
notifier.sendInBlue.updatesListId
string
850
notifier.sendInBlue.updateTemplateId
string
7
The logger section configures logging and error notification settings.
logger.smtp.username
string
admin@opentermsarchive.org
logger.sendMailOnError.from
string
noreply@example.com
logger.sendMailOnError.sendWarnings
boolean
false
logger.timestampPrefix
boolean
true
The reporter section manages how issues are reported when terms content is inaccessible, supporting GitHub and GitLab.
reporter.repositories.declarations
string
OpenTermsArchive/demo-declarations
reporter.repositories.versions
string
OpenTermsArchive/demo-versions
reporter.repositories.snapshots
string
OpenTermsArchive/demo-snapshots
reporter.apiBaseURL
string
https://api.gitlab.example.com
The dataset section configures how datasets are published.
dataset.versionsRepositoryURL
string
https://github.com/OpenTermsArchive/sandbox
dataset.publishingSchedule
string
30 8 * * MON
The collection API section sets the parameters for the API server.
The storage repositories section set the parameters for supported backends for storing versions and snapshots, supporting Git and MongoDB.
The Git storage configuration allows to store versions in a Git repository.
storage.git.snapshotIdentiferTemplate
string
%SNAPSHOT_ID
will be replaced with the actual snapshot ID../data/snapshots/%SNAPSHOT_ID
The MongoDB storage configuration allows to store versions in a MongoDB database.