Configuration reference
Settings in the install directory's .env: port and version, initial administrator, licence server and update checks, time zone and queueing, log retention, reverse proxies, the metrics token and the key encryption key, plus the system settings kept in the console.
Configuration lives in .env in the install directory and is passed to the gateway container by docker-compose.yml. After a change, run docker compose up -d in the install directory; the setting takes effect once the gateway container is recreated.
Most runtime configuration is not in .env but is changed in the console and stored in the database: models, projects, keys, users, alerts, sign-in integrations, content safety, branding, and the log retention period under Settings > Security.
Settings
| Setting | Default | Description |
|---|---|---|
POSTGRES_PASSWORD | Generated by install.sh | Password of the bundled PostgreSQL. Do not change it after installation |
RST_FABRIC_PORT | 8080 | Gateway port on the host |
RST_FABRIC_VERSION | Package version | Gateway image version to run. Changed by hand for a manual upgrade, or by the upgrade helper |
RST_FABRIC_ADMIN_PASSWORD | Empty | Password for the initial admin account, used only while the database has no users. When empty, a random password is printed in the gateway log and must be changed at first sign-in |
RST_FABRIC_LICENSE_SERVER | https://license.reallysec.com | Online licence server. Leave the default for offline activation |
RST_FABRIC_UPDATE_URL | https://updates.reallysec.com/releases/rst-ai-fabric/latest.json | Where new-version information is read. Set it empty (RST_FABRIC_UPDATE_URL=) to turn off every online update check; the console then shows that online update checks are off |
RST_FABRIC_COOKIE_SECURE | false | Set to true when the console is served over HTTPS |
RST_FABRIC_TRUSTED_PROXIES | Empty | IPs or CIDRs of trusted reverse proxies, comma separated. X-Forwarded-For is trusted only from these addresses; key IP allowlists depend on it |
RST_FABRIC_TIMEZONE | Asia/Shanghai | Daily and monthly budgets and limits reset on calendar days and months in this time zone; statistics and statements use it too |
RST_FABRIC_QUEUE_TIMEOUT | 30 | Seconds a request may wait when a model is at its concurrency limit; then 429 model_busy |
RST_FABRIC_LOG_RETENTION_DAYS | 90 | Days to keep request logs; 0 keeps them forever. Usage reports and statements are not affected. Once saved under Settings > Security, the console value wins |
RST_FABRIC_METRICS_TOKEN | Generated by install.sh | Bearer token for /metrics. When empty, /metrics answers only direct requests from the gateway host; see Monitoring and tracing |
RST_FABRIC_SECRET_KEY | Empty | Encryption key behind viewing keys again; base64 of 32 bytes (openssl rand -base64 32). When empty, it is generated on first start and kept in the secrets Docker volume. Gateways that share one database must all use the same value |
OTEL_* | Empty | OpenTelemetry tracing; see Monitoring and tracing |
COMPOSE_PROJECT_NAME | rst-ai-fabric | Written by install.sh to keep container and volume names fixed. Do not change it |
.env holds the database password and the metrics token. Keep it at mode 600 and include it in backups; see Upgrade and backup.
Key encryption key
Viewing a key again relies on an encryption key that is not stored in the database, so a leaked database backup does not expose API keys.
- If
RST_FABRIC_SECRET_KEYis not set, the key is generated on first start and kept in thesecretsvolume. Back it up separately, and not alongside the database backups. - If
RST_FABRIC_SECRET_KEYis set, backing up.envis enough. When moving to a new host, put the same value in the new host's.env. - If the key is lost or replaced, existing API keys keep working but can no longer be viewed.
System settings in the console
These settings are changed in the console and apply to all users once saved:
| Location | Contents |
|---|---|
| Settings > Security | Require two-factor authentication for administrators, allow viewing keys again, request log retention |
| Settings > Login integrations | OIDC single sign-on, Feishu sign-in, LDAP / AD sign-in; see Sign-in integrations |
| Settings > Email | SMTP server for email alerts |
| Settings > Content safety | Keyword filtering and personal information masking |
| Settings > Branding | Product name, logos, colours |
| Settings > Cost | Fixed monthly cost of running locally, used by the value report |
See Settings. System information under Settings > Personal shows the version, time zone, log retention and queue timeout in effect.
Installation and HTTPS
What the offline package contains, what install.sh does, the initial administrator password and first sign-in, installing the upgrade helper, and an Nginx reverse proxy in front of the gateway for HTTPS.
Multiple nodes
Load balancing and failover across several vLLM instances for one model, installing and auto-updating the GPU node agent, remote vLLM deployment from the console, and what to watch when several gateways share one database.