Skip to main content
Installation

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:

FilePurpose
install.shInstall script
images.tar.gzGateway and PostgreSQL images; installation does not contact an image registry
docker-compose.yml, .env.exampleCompose 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
部署运维手册.mdOperations 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

  1. Extract the package and change into the directory. This becomes the install directory: run later upgrades, backups and docker compose commands from here.

    tar xzf rst-ai-fabric-<version>-linux-amd64.tar.gz
    cd rst-ai-fabric-<version>-linux-amd64
  2. Run the install script as root:

    sudo ./install.sh

The script then:

  1. Checks for Docker, the docker compose plugin and /etc/machine-id.
  2. Loads the images from images.tar.gz.
  3. Creates .env from .env.example with a random database password (POSTGRES_PASSWORD) and /metrics token (RST_FABRIC_METRICS_TOKEN), and sets COMPOSE_PROJECT_NAME=rst-ai-fabric so container and volume names do not depend on the directory. Only the owner can read or write .env.
  4. When run as root, installs and starts the upgrade helper rst-ai-fabric-updater.
  5. Runs docker compose up -d and 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

  1. Read the initial administrator password:

    docker compose logs rst-ai-fabric | grep password

    If you set RST_FABRIC_ADMIN_PASSWORD in .env before installing, that password is used instead. It only applies while the database has no users.

  2. Open http://<host>:8080 and sign in as admin. With the generated password you must change it before you can continue.

  3. Turn on two-factor authentication under Settings > Personal.

  4. 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.1

Set 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    # ok

Gateway log: docker compose logs -f rst-ai-fabric.

On this page