Skip to content

Advanced Setup

Installation gets you running with defaults. This page explains how Ciaren decides which configuration value wins. The other jobs have their own pages:

I want to...Read
Look up a variable or its defaultConfiguration Reference
Use PostgreSQL or MySQL, or move the data directoryDatabase and Data Directory
Choose thread or process mode, set timeouts, tune the schedulerExecution Tuning
Host Ciaren for a teamProduction Deployment
Run it in a containerDocker

Configuration sources and precedence

Ciaren reads configuration in this order. Later wins.

  1. Built-in defaults.
  2. A .env file in the directory you start Ciaren from. Use --env-file PATH to load a different file.
  3. Environment variables with the CIAREN_ prefix.
  4. ciaren serve flags such as --db-url, --data-dir, --engine, --execution-mode, and --no-scheduler. They are applied as environment variables before the app loads.
  5. Settings page overrides, for the small subset marked UI in the reference. They are saved in Ciaren's database, applied immediately, and re-applied on every start.

Create a commented .env with ciaren init, print the resolved values with ciaren info, and validate the environment with ciaren check.

The Settings page

The gear icon in the header opens Settings: the runtime configuration you can edit from the browser. It covers the default engine, execution mode, run timeout, upload size, dataset retention, scheduler tuning, and the ML guardrail limits. Each row shows where its value comes from (default, environment, or a saved override) and what Reset would restore. Changes apply to the whole server and survive restarts. The few marked "takes effect after restart" are read once at startup. Overrides are designed for the standard single-process ciaren serve: with several server processes, a change applies live to the process that handled it and to every process after a restart.

A saved override mutes its environment variable

While a setting shows Custom, its CIAREN_* variable (and the matching ciaren serve flag) has no effect. Editing or removing the variable changes nothing until you press Reset on that setting. Each row names its variable and warns when the variable is being ignored.

Everything else is deliberately environment-only:

  • bootstrap values the server needs before the database is up (DATABASE_URL, DATA_DIR);
  • secrets (API_TOKEN, WEBHOOK_SECRET, NOTIFY_WEBHOOK_SECRET);
  • the failure-notification URL, because Ciaren sends its secret there;
  • the security guards (CORS and CSRF, secret allowlists, storage confinement, plugin enforcement).

The Settings page is reachable by exactly the audience those guards constrain. Editing them there would let that audience weaken its own guardrails, so changing them needs access to the server's environment.

Environment variables

Every variable, with its default and whether the Settings page can edit it, is in the Configuration Reference.

Execution tuning

Whether to run compute in threads or processes, and how to cap run time, is in Execution Tuning.

Production deployment

Hosting Ciaren for others, behind TLS, with a managed database, is in Production Deployment.

Verify

bash
ciaren info     # resolved settings (the database password is redacted)
ciaren check    # data dir writable, async driver, database reachable, engines present

See also