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
- Edit
.env(for examplenano .env) and save. - Apply it, from the same folder:
docker compose up -d
Only the parts whose settings changed restart. This takes a few seconds.
.env private and backed upIt 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
| Setting | What it is | Should I change it? |
|---|---|---|
NUROUTE_DOMAIN | The address your team opens, without https://, e.g. nuroute.acme.com. Set by install.sh --domain | Yes, 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_VERSION | The NuRoute release running, e.g. 1.0.0 | No. ./upgrade.sh changes it for you (see Backups and upgrades) |
CADDY_SITE | Normally unset. :80 when NuRoute sits behind your own HTTPS proxy | See Behind your own HTTPS proxy |
POSTGRES_PASSWORD | The database password. Generated | No. The database is not reachable from outside the server anyway |
JWT_SECRET | Signs dashboard sessions. Generated | Only if you believe it leaked. Everyone is signed out, and nothing else is affected |
AUTH_ENCRYPTION_KEY | Encrypts the licence key and your mail server password in the database. Generated | Never. Data encrypted with the old key could no longer be read |
PROVIDER_ENCRYPTION_KEY | Encrypts your AI providers' API keys in the database. Generated | Never, for the same reason |
NUROUTE_REGISTRY | Where images are downloaded from, ghcr.io/nuroute-ai | Only 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:
-
In
.env, add:CADDY_SITE=:80 -
Apply it with
docker compose up -d. NuRoute now serves plain HTTP on port 80 and gets no certificate. -
Point your proxy at
http://<server>:80for your domain. Have it pass on the originalHostheader andX-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. -
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.comIt 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:
| Volume | What it holds |
|---|---|
postgres_data | Users, organization, projects, API keys (hashed), provider keys (encrypted), policies, routing history |
clickhouse_data | Request logs and usage charts |
redis_data | Sessions and short-lived caches |
updates | The routing model and model catalogue received with the licence check-in |
caddy_data | The HTTPS certificate |
Backups cover PostgreSQL and .env. That is everything needed to restore the install. Request logs and usage charts are not backed up.