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. Datasets can be published to GitHub releases, GitLab releases, and/or data.gouv.fr. If both GitHub and GitLab tokens are configured, GitHub takes precedence.
dataset.versionsRepositoryURL
string
https://github.com/OpenTermsArchive/sandboxdataset.publishingSchedule
string
dataset.datagouv.frequency to match the actual publishing frequency.30 8 * * MONThe data.gouv.fr section configures publishing to the French government’s open data platform. Either datasetId or organizationIdOrSlug must be configured.
dataset.datagouv.datasetId
string
organizationIdOrSlug is required.6914a64b17a0a91bb0a61222dataset.datagouv.organizationIdOrSlug
string
dataset.title if it doesn’t exist. Either this or datasetId is required.open-terms-archivedataset.datagouv.frequency
string
weeklydataset.datagouv.useDemo
boolean
true to use the demo.data.gouv.fr environment for testing.falseThe 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.