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.
Package
There is one package per architecture: rst-ai-fabric-<version>-linux-amd64.tar.gz and rst-ai-fabric-<version>-linux-arm64.tar.gz. Download them from https://updates.reallysec.com/releases/rst-ai-fabric/<version>/; the matching .sig signature file sits in the same directory. The extracted directory contains:
| File | Purpose |
|---|---|
install.sh | Install script |
images.tar.gz | Gateway and PostgreSQL images; installation does not contact an image registry |
docker-compose.yml, .env.example | Compose file and configuration template |
agent/ | GPU node agent binary and systemd unit; see Multiple nodes |
upgrade-helper/ | Upgrade helper binary and systemd unit |
monitoring/ | Prometheus scrape and alert rule examples and a Grafana dashboard; see Monitoring and tracing |
部署运维手册.md | Operations manual shipped with the package (Chinese) |
Install
Prerequisites
- The host meets the requirements.
- RST AI Fabric is not already installed on the host. If the script finds an existing data volume, it stops and points you to the upgrade steps.
Steps
-
Extract the package and change into the directory. This becomes the install directory: run later upgrades, backups and
docker composecommands from here.tar xzf rst-ai-fabric-<version>-linux-amd64.tar.gz cd rst-ai-fabric-<version>-linux-amd64 -
Run the install script as root:
sudo ./install.sh
The script then:
- Checks for Docker, the docker compose plugin and
/etc/machine-id. - Loads the images from
images.tar.gz. - Creates
.envfrom.env.examplewith a random database password (POSTGRES_PASSWORD) and/metricstoken (RST_FABRIC_METRICS_TOKEN), and setsCOMPOSE_PROJECT_NAME=rst-ai-fabricso container and volume names do not depend on the directory. Only the owner can read or write.env. - When run as root, installs and starts the upgrade helper
rst-ai-fabric-updater. - Runs
docker compose up -dand prints the URL.
To change the port or other settings, edit .env and run docker compose up -d. See the configuration reference.
Run without root, the script still installs the gateway but skips the upgrade helper, so one-click upgrades are unavailable. Add it later with sudo ./install.sh updater <install-dir>.
First sign-in
-
Read the initial administrator password:
docker compose logs rst-ai-fabric | grep passwordIf you set
RST_FABRIC_ADMIN_PASSWORDin.envbefore installing, that password is used instead. It only applies while the database has no users. -
Open
http://<host>:8080and sign in asadmin. With the generated password you must change it before you can continue. -
Turn on two-factor authentication under Settings > Personal.
-
Activate the licence on the License page; see License.
HTTPS
The gateway itself serves HTTP only. In production, put a reverse proxy in front of it to terminate TLS. The example uses Nginx. Streaming needs proxy buffering turned off; otherwise replies arrive all at once at the end.
server {
listen 443 ssl http2;
server_name ai.example.com;
ssl_certificate /etc/nginx/ssl/ai.crt;
ssl_certificate_key /etc/nginx/ssl/ai.key;
client_max_body_size 32m;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_buffering off;
proxy_read_timeout 600s;
}
}Then set these two values in .env and run docker compose up -d:
RST_FABRIC_COOKIE_SECURE=true
RST_FABRIC_TRUSTED_PROXIES=172.16.0.0/12,127.0.0.1Set RST_FABRIC_TRUSTED_PROXIES to the proxy's addresses. X-Forwarded-For is trusted only from these addresses; key IP allowlists and the client IP in request logs depend on it. Do not add office networks.
With HTTPS in place, callers use https://ai.example.com/v1 as base_url, and the GPU node agents' RST_FABRIC_SERVER changes to the HTTPS URL as well.
Verify
docker compose ps
curl http://127.0.0.1:8080/healthz # okGateway log: docker compose logs -f rst-ai-fabric.
Requirements and network
Gateway host sizing and software, the machine identifier, requirements for inference servers and GPU nodes, deployment layouts, and the inbound and outbound ports to open.
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.