Skip to main content
Installation

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

SettingDefaultDescription
POSTGRES_PASSWORDGenerated by install.shPassword of the bundled PostgreSQL. Do not change it after installation
RST_FABRIC_PORT8080Gateway port on the host
RST_FABRIC_VERSIONPackage versionGateway image version to run. Changed by hand for a manual upgrade, or by the upgrade helper
RST_FABRIC_ADMIN_PASSWORDEmptyPassword 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_SERVERhttps://license.reallysec.comOnline licence server. Leave the default for offline activation
RST_FABRIC_UPDATE_URLhttps://updates.reallysec.com/releases/rst-ai-fabric/latest.jsonWhere 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_SECUREfalseSet to true when the console is served over HTTPS
RST_FABRIC_TRUSTED_PROXIESEmptyIPs 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_TIMEZONEAsia/ShanghaiDaily and monthly budgets and limits reset on calendar days and months in this time zone; statistics and statements use it too
RST_FABRIC_QUEUE_TIMEOUT30Seconds a request may wait when a model is at its concurrency limit; then 429 model_busy
RST_FABRIC_LOG_RETENTION_DAYS90Days 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_TOKENGenerated by install.shBearer token for /metrics. When empty, /metrics answers only direct requests from the gateway host; see Monitoring and tracing
RST_FABRIC_SECRET_KEYEmptyEncryption 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_*EmptyOpenTelemetry tracing; see Monitoring and tracing
COMPOSE_PROJECT_NAMErst-ai-fabricWritten 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_KEY is not set, the key is generated on first start and kept in the secrets volume. Back it up separately, and not alongside the database backups.
  • If RST_FABRIC_SECRET_KEY is set, backing up .env is 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:

LocationContents
Settings > SecurityRequire two-factor authentication for administrators, allow viewing keys again, request log retention
Settings > Login integrationsOIDC single sign-on, Feishu sign-in, LDAP / AD sign-in; see Sign-in integrations
Settings > EmailSMTP server for email alerts
Settings > Content safetyKeyword filtering and personal information masking
Settings > BrandingProduct name, logos, colours
Settings > CostFixed 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.

On this page