[data-reveal]{opacity:1!important;transform:none!important}
AntelopeJS DMS
DocumentationConfiguration

Configuration

The options the AntelopeJS Cloud module reads from antelope.config.ts.

The module reads five options from the project's antelope.config.ts.

antelope.config.ts typescript
modules: {
  "antelope-cloud": {
    source: { type: "local", path: "../dms-antelope-cloud" },
    config: {
      apiUrl: "https://api.antelopejs.cloud",
      secretKey: process.env.ANTELOPE_CLOUD_SECRET_KEY,
    },
  },
}
OptionDefaultWhat it does
apiUrlhttps://api.antelopejs.cloudBase URL of the AntelopeJS Cloud API. The Connection page asks GET <apiUrl>/api/cloud/health, and the sign-in and project reads go there too.
secretKeynoneThe secret the stored AntelopeJS Cloud tokens are encrypted with, at least 32 characters. The module derives an AES-256-GCM key from it with HKDF-SHA256. Changing it makes the stored tokens unreadable: each workspace then signs in again. Without it the module does not run, as Where the module runs explains.
repositoryPaththe folder the process runs inRoot of the project's git work tree. Publishing commits, tags and pushes it, a promotion pushes commits from it to origin's env/<name> branches, and the Overview, First-run setup and Connection pages show its origin and branch. A relative path resolves against the folder the process runs in.
promotionFollow{ intervalMs: 5000, limitMs: 600000 }How often and for how long, in milliseconds, the module reads an environment after a promotion to it, so that open pages show its deployment.
managednone{ token, projectId }: what an AntelopeJS Cloud development environment gives this instance. Both set, the module is connected to that project from its first start. Both left out or empty, as unset variables read, the owner signs in with a device code.

Validation

The module refuses to start, with an error that names the option, unless:

  • apiUrl is an absolute http or https URL.
  • A secretKey that is set is a string of at least 32 characters.
  • The promotionFollow values are positive whole numbers.
  • managed has both its token and its projectId, or neither.