Aller au contenu

Configuration

Dernière révision : 28 octobre 2026 · Nouveautés de la plateforme

En bref Régler une application déployée sans la reconstruire.

Deux niveaux : la configuration d'instance décrit un service ; le document de configuration décrit une application installée dessus.

Configuration d'instance

Elle se règle depuis la console Infrastructure, par un assistant propre à chaque type de service. Elle porte ce qui appartient au service : dimensionnement, base, stockage, réglages du moteur.

Un redémarrage ne réécrit pas l'environnement d'une instance : c'est l'application de la configuration qui le fait.

Document de configuration d'une application

Chaque clé lue par un flux devient une entrée du document de configuration, modifiable à l'étape « Configuration » de la publication, sans reconstruire.

Dans un flux, une clé s'écrit avec sa valeur par défaut :

{{mon.appli.delai:5000}}
{{mon.appli.cible:http://localhost:{{env:PORT:8080}}/rest/service}}

Une valeur par défaut peut contenir un placeholder : c'est ainsi qu'une adresse dépendante de l'environnement s'écrit sans être figée.

Secrets

Un secret ne s'écrit ni dans un flux ni dans le document de configuration. Il se provisionne en variable d'environnement de l'instance, et le flux le lit par {{env:MA_VARIABLE}}.

Rendre un secret obligatoire sans le fournir empêche le service de démarrer : les deux réglages se posent ensemble.

Où et quand elle s'applique

Le document de configuration d'une application se modifie dans le studio : l'application, Actions, Publier l'application, étape Configuration (l'étape Build se passe avec « Use last build » quand l'application n'a pas changé). Il est enregistré avec l'organisation et la clé de l'application.

La configuration n'est lue qu'au démarrage de l'application : après un changement, redémarrer le moteur (console Infrastructure, bouton Redémarrer) ou réinstaller l'application. Un défaut écrit dans un flux ne remplace jamais une valeur déjà enregistrée : pour qu'une application déjà déployée adopte un nouveau défaut, modifier la valeur enregistrée.

Deux syntaxes de substitution

OùSyntaxeRésolue
dans une route, un point d'entrée REST, une expression de flux{{clé:défaut}}par le moteur, à l'exécution
dans un bean du contexte, par exemple le contrôle d'accès d'un flux (<clomoon:scope>)${clé:défaut}par le moteur, au démarrage de l'application
Dans le contrôle d'accès d'un flux, les deux formes fonctionnent : ${…} est résolue au démarrage de l'application, la forme à deux accolades à chaque appel. Les flux livrés utilisent ${…} : l'intégrateur de trades, par exemple, lit dans intake.auth.scope la portée qu'une clé d'API doit porter pour l'appeler (par défaut SCOPE_ORG.APPLICATION.DEFAULT.WRITE, écrite avec le préfixe SCOPE_). Une clé introuvable et sans défaut ne correspond à rien : l'accès est refusé, jamais accordé.

Réglages d'instance utiles

RéglageEffet
Options de la machine Java (JAVA_OPTS, niveau expert)options autres que la mémoire : propriétés -D…, ramasse-miettes. La mémoire est fixée par la taille de l'instance et le plan de l'organisation : une option de mémoire (-Xmx, -Xms…) est refusée, et celles enregistrées auparavant sont retirées au prochain démarrage.

Un changement de configuration d'instance s'applique au prochain redémarrage de l'instance.

Les réglages du ledger, sa rétention et le retrait d'un flux du ledger : Ledger et rétention.
Documentation de la plateforme Clomoon, éditée par Clover Consulting · Mentions légales · Confidentialité · Contact
Skip to content

Configuration

Last revised 28 October 2026 · Platform changelog

In short Adjust a deployed application without rebuilding it.

Two levels: the instance configuration describes a service; the configuration document describes an application installed on it.

Instance configuration

It is set from the Infrastructure console, through a wizard specific to each service type. It covers what belongs to the service: sizing, database, storage, engine settings.

A restart does not rewrite an instance's environment: applying the configuration is what does.

An application's configuration document

Every key read by a flow becomes an entry of the configuration document, editable at the “Configuration” step of the publication, without rebuilding.

In a flow, a key is written with its default value:

{{my.app.timeout:5000}}
{{my.app.target:http://localhost:{{env:PORT:8080}}/rest/service}}

A default value may itself contain a placeholder: that is how an address that depends on the environment is written without being frozen.

Secrets

A secret is written neither in a flow nor in the configuration document. It is provisioned as an environment variable of the instance, and the flow reads it through {{env:MY_VARIABLE}}.

Making a secret mandatory without supplying it stops the service from starting: both settings are made together.

Where and when it applies

An application's configuration document is edited in the studio: the application, Actions, Publish application, Configuration step (the Build step is skipped with “Use last build” when the application has not changed). It is stored with the organization and the application key.

The configuration is read only when the application starts: after a change, restart the engine (Infrastructure console, Restart button) or reinstall the application. A default written in a flow never replaces a value that is already stored: for an application that is already deployed to adopt a new default, change the stored value.

Two substitution syntaxes

WhereSyntaxResolved
in a route, a REST entry point, a flow expression{{key:default}}by the engine, at run time
in a bean of the context, for instance a flow's access control (<clomoon:scope>)${key:default}by the engine, when the application starts
In a flow's access control, both forms work: ${…} is resolved when the application starts, the double-brace form at each call. The delivered flows use ${…}: the trade integrator, for instance, reads in intake.auth.scope the scope an API key must carry to call it (by default SCOPE_ORG.APPLICATION.DEFAULT.WRITE, written with the SCOPE_ prefix). A key that cannot be found and has no default matches nothing: access is refused, never granted.

Useful instance settings

SettingEffect
Java machine options (JAVA_OPTS, expert level)options other than memory: -D… properties, garbage collector. Memory is set by the size of the instance and the plan of the organization: a memory option (-Xmx, -Xms…) is refused, and those saved before are removed at the next start.

A change to an instance's configuration applies at the instance's next restart.

The ledger's settings, its retention and removing a flow from the ledger: Ledger and retention.
Documentation for the Clomoon platform, published by Clover Consulting · Legal notice · Privacy · Contact