How-to guides
Change a setting
Included free on every install.
A setting changes in three steps: edit it where your deployment keeps it, restart the piece that reads it, then check the value the engine reports. This page walks through each step for Docker Compose, plain Docker and Kubernetes, and lists the settings that need care. Configuration lists every setting and what it does.
Before you start
Link to the section Before you start- A running instance. Run the engine and LyEve Console together starts one on your computer.
- A
super_adminaccount, to read Settings > Configuration orGET /api/admin/config.
1. Find where the setting lives
Link to the section 1. Find where the setting livesThe engine reads each setting from up to three places. The first one that has it wins:
| Place | Who sets it | When a change applies |
|---|---|---|
| An environment variable | Whoever deploys the engine | At the next restart |
The YAML file, lyeve.yaml | Whoever deploys the engine | At the next restart |
| The console | A super_admin, on Settings > Configuration or a feature's own settings page | At once for most settings, otherwise at the next restart |
A setting none of them sets takes the engine's default. To see which place each value came from:
Console v0.28.0
Open Settings > Configuration.

Each row names the setting, its current value and its source. A secret shows Stored, not shown. A value set by an environment variable or the file is read-only on this page, because the higher place would win anyway. Search by a variable's name or by what it does.
Engine API v0.62.0
curl http://localhost:8080/api/admin/config \ -H "Authorization: Bearer $TOKEN"Each entry under settings carries the key, its value, its source (env, file,
admin, or default when no place sets it) and whether it is editable in the console. A secret carries no value. counts says
how many come from each place.
Both list every setting the engine reads. A setting no place sets is listed with its default
and the source default.
The console has a few settings of its own, which only the console container reads: ORIGIN,
CORE_INTERNAL_URL, CORE_API_INTERNAL_URL, PORT, LYEVE_CONSOLE_KEY, ADDRESS_HEADER,
XFF_DEPTH and SIGN_IN_ORGANIZATION. They live in the console's environment, and a change
restarts the console, not the engine. Docker images
explains each one.
2. Make the change
Link to the section 2. Make the changeDocker Compose
Link to the section Docker ComposeEdit the variable under the service's environment, or its value in .env, then apply it:
docker compose up -dCompose recreates only the containers whose settings changed and leaves the rest running. Do not
use docker compose restart for this. It restarts a container with the settings it was created
with, so the edit does nothing.
Plain Docker
Link to the section Plain DockerA container keeps the environment it was created with. Remove it and run it again with the new value. The data lives in the database and the volumes, so nothing is lost:
docker rm -f lyeve-enginedocker run -d --name lyeve-engine \ -e JWT_EXPIRY_SECS=1800 \ ...the other settings, unchanged... ghcr.io/lyeve-labs/lyeve-core:latestKeep the command in a script or a file, so the next change starts from the full list rather than from memory.
Kubernetes
Link to the section KubernetesChange the value in the ConfigMap, or in the Secret for a secret, then restart the engine:
kubectl rollout restart deployment/<engine deployment>A changed ConfigMap or Secret does not restart running pods. Until the rollout, they keep the old value. Kubernetes shows the manifests.
The YAML file
Link to the section The YAML fileEdit lyeve.yaml and restart the engine the way your deployment does. A key in the file is the
variable's name in lower case, so JWT_EXPIRY_SECS is jwt_expiry_secs.
The YAML file covers nesting, includes and
!overridable.
In the console layer
Link to the section In the console layerA feature's settings can be saved in the console layer, as long as no environment variable or
file sets them. A setting the feature reads each time it uses it applies at once, and one it
reads only at start applies at the next restart.
Where settings come from names the
three that always wait for a restart. The engine's own settings, such as JWT_EXPIRY_SECS, are
read when the engine starts, so a value saved for one applies at the next restart. The settings
the engine needs before it can read the console layer, such as the database, the encryption
key, the listeners and the license, take their value from the environment or the file only.
A few more are reserved to whoever runs the engine, such as the key management settings, the
storage bucket and the private networks a webhook may reach. The console cannot save those, and
the list marks them as not editable.
Console v0.28.0
- A feature's settings page, such as Settings > Email or Settings > Storage, saves that feature's settings and credentials. A credential is encrypted and never shown again.
- Settings > Configuration edits any setting the list marks
editable, whether or not it holds a saved value: change it in its row and choose Save. A setting the engine reads at start says Saved. It applies when the engine next restarts. - Settings > License activates a license. The paid parts of features that are running apply at once, and a paid feature that was not running starts at the next restart.

Engine API v0.62.0
PUT /api/admin/config saves settings into the console layer:
curl -X PUT http://localhost:8080/api/admin/config \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{"values": {"flow_run_retention": "168h"}}'The answer is 200 and lists each saved setting under saved. A setting an environment
variable or the file holds is listed under refused with the reason, and when every setting is
refused the answer is 409. A license goes to POST /api/admin/license/renew, as
Licensing and tiers shows.
To let the console take over a setting the environment sets, name it in LYEVE_OVERRIDABLE on
the engine. The environment value then stays in force until someone saves another one.
3. Check the value the engine uses
Link to the section 3. Check the value the engine usesAfter the restart, confirm the engine came back and took the value. First, docker compose ps
shows the engine (healthy), or kubectl rollout status finishes. An engine that refuses to
start prints every problem at once in its log (docker compose logs engine), so one restart
shows all of them. Then read the value:
Console v0.28.0
Settings > Configuration shows the new value and the place it came from. Search for the setting by its name.
Engine API v0.62.0
With a super_admin token, find the setting in the list. Secrets show no value:
curl -s http://localhost:8080/api/admin/config \ -H "Authorization: Bearer $TOKEN" | grep -o '{"key":"JWT_EXPIRY_SECS"[^}]*}'Settings that need care
Link to the section Settings that need care| Setting | What changing it does |
|---|---|
ENCRYPTION_KEY | Stored credentials, two-factor seeds and provider secrets become unreadable. Keep the value for the life of the install |
| The engine's state volume | It holds the key that signs sessions. Losing it signs every user out |
DATABASE_URL | Points the engine at another database. It creates its tables there and starts empty |
APP_ENV | production, the default, refuses to start without SECURE_COOKIE, RATE_LIMIT_RPS and LYEVE_AUDIT_HMAC_KEY. See what production refuses |
LYEVE_PLUGINS | Starts only the features it lists. A feature left out stops serving its screens and routes |
Moving the console to a new address
Link to the section Moving the console to a new addressThe console's address is written in three settings, on two containers. Change them together:
| Setting | Where | New value |
|---|---|---|
ORIGIN | The console | The address in the browser, such as https://admin.example.com |
LYEVE_CONSOLE_URL | The engine | The same address. Password reset and sign-in emails link to it |
CORS_ORIGINS | The engine | The same address, when the console and the APIs are on different origins |
Then restart both. A console whose ORIGIN does not match the address in the browser refuses
every form post, and sign-in is the first one you notice.
Common changes
Link to the section Common changes| To | Change | Where |
|---|---|---|
| Run the paid features | LYEVE_LICENSE_KEY, or Settings > License | The engine |
| Keep people signed in longer or shorter | JWT_EXPIRY_SECS, at most 3600 in production | The engine |
| Send email | Settings > Email, or the mail variables in Configuration | The engine |
| Keep uploads in a bucket | Settings > Storage, or the storage variables in Configuration | The engine |
| Choose the first administrator's setup token | LYEVE_SETUP_TOKEN | The engine |
| Serve the console on another port | PORT, and the proxy that points at it | The console |
- Configuration: every setting, its default and what production refuses.
- Production checklist: what to confirm before you take traffic.
- Harden your instance: the settings a public instance needs.