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-declarationsThe 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
10000The notifier section sets up how notifications are sent when new versions of terms are recorded.
notifier.sendInBlue.updatesListId
string
850notifier.sendInBlue.updateTemplateId
string
7The logger section configures logging and error notification settings.
logger.smtp.username
string
admin@opentermsarchive.orglogger.sendMailOnError.from
string
noreply@example.comlogger.sendMailOnError.sendWarnings
boolean
falselogger.timestampPrefix
boolean
trueThe reporter section manages how issues are reported when terms content is inaccessible, supporting GitHub and GitLab.
reporter.repositories.declarations
string
OpenTermsArchive/demo-declarationsreporter.repositories.versions
string
OpenTermsArchive/demo-versionsreporter.repositories.snapshots
string
OpenTermsArchive/demo-snapshotsreporter.apiBaseURL
string
https://api.gitlab.example.comThe dataset section configures how datasets are published.
dataset.versionsRepositoryURL
string
https://github.com/OpenTermsArchive/sandboxdataset.publishingSchedule
string
30 8 * * MONThe 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_IDThe MongoDB storage configuration allows to store versions in a MongoDB database.