Skip to main content

Configuration

Configuration means the settings that tell NuRoute how to behave. All of NuRoute's settings live in one file, called .env, in the folder you installed into (nuroute/ if you used the one-line install).

The installer creates the file from .env.example and fills in the secrets. Most installs never change anything after that.

How to change a setting​

  1. Edit .env (for example nano .env) and save.
  2. Apply it, from the same folder:
docker compose up -d

Only the parts whose settings changed restart. This takes a few seconds.

Keep .env private and backed up

It holds the database password and the keys that scramble (encrypt) your provider API keys. Only the server's admins should be able to read it (the installer makes it readable by its owner only). Keep a copy in your password manager or secrets vault.

The settings​

SettingWhat it isShould I change it?
NUROUTE_DOMAINThe address your team opens, without https://, e.g. nuroute.acme.com. Set by install.sh --domainYes, if you move to a new domain: point its DNS at the server first, then docker compose up -d gets a certificate for it
NUROUTE_VERSIONThe NuRoute release running, e.g. 1.0.0No. ./upgrade.sh changes it for you (see Backups and upgrades)
CADDY_SITENormally unset. :80 when NuRoute sits behind your own HTTPS proxySee Behind your own HTTPS proxy
POSTGRES_PASSWORDThe database password. GeneratedNo. The database is not reachable from outside the server anyway
JWT_SECRETSigns dashboard sessions. GeneratedOnly if you believe it leaked. Everyone is signed out, and nothing else is affected
AUTH_ENCRYPTION_KEYEncrypts the licence key and your mail server password in the database. GeneratedNever. Data encrypted with the old key could no longer be read
PROVIDER_ENCRYPTION_KEYEncrypts your AI providers' API keys in the database. GeneratedNever, for the same reason
NUROUTE_REGISTRYWhere images are downloaded from, ghcr.io/nuroute-aiOnly if you keep a private mirror of NuRoute's images

The installer never overwrites a value you already have, so running ./install.sh again is safe.

Behind your own HTTPS proxy​

By default, NuRoute's built-in front door (Caddy) answers on ports 80 and 443 and gets the HTTPS certificate itself.

Your company may already have a reverse proxy or load balancer that handles HTTPS (nginx, Traefik, F5, an AWS or Azure load balancer). If so, let it do that job instead:

  1. In .env, add:

    CADDY_SITE=:80
  2. Apply it with docker compose up -d. NuRoute now serves plain HTTP on port 80 and gets no certificate.

  3. Point your proxy at http://<server>:80 for your domain. Have it pass on the original Host header and X-Forwarded-For (most do by default). Allow request bodies of at least 10 MB and response timeouts of at least 5 minutes, because long AI answers stream for a while.

  4. Make sure only your proxy can reach port 80 on the server (a firewall rule), because that traffic is no longer encrypted.

Email​

NuRoute sends no email from your install until you connect your own mail server. Until then:

  • Invitations still work. Members shows the invitation link, and you send it yourself.

  • Password resets cannot be emailed. Someone with access to the server prints a reset link instead, from the install folder:

    ./reset-password.sh someone@acme.com

    It prints a link that works once, within an hour. Send it to the person directly.

To make NuRoute send these emails, an owner or admin opens Settings → Email (SMTP) and enters:

  • your mail server's host and port,
  • the username and password,
  • the sender address.

Examples are your Microsoft 365 or Google Workspace relay, or an SMTP service such as Amazon SES. The password is stored encrypted.

Resources and data​

NuRoute keeps its data in Docker volumes (storage areas Docker manages) on the server. docker volume ls shows them, prefixed with the folder name:

VolumeWhat it holds
postgres_dataUsers, organization, projects, API keys (hashed), provider keys (encrypted), policies, routing history
clickhouse_dataRequest logs and usage charts
redis_dataSessions and short-lived caches
updatesThe routing model and model catalogue received with the licence check-in
caddy_dataThe HTTPS certificate

Backups cover PostgreSQL and .env. That is everything needed to restore the install. Request logs and usage charts are not backed up.