Configuration
Deployment settings in the installation directory's .env file covering ports, the built-in SSH service, time zone, licence server, online update, proxy, HTTPS certificates and reverse proxies.
Every deployment setting lives in .env in the installation directory. After a change, run docker compose up -d in that directory. Application settings such as the password policy, recording and session security are changed in System settings, not in .env.
Settings
| Setting | Default | Description |
|---|---|---|
BASTION_VERSION | The package version | The bastion version to run. Changed by the upgrade helper during a one-click upgrade, or by hand for a manual upgrade |
BASTION_GUACD_VERSION | 1.6.0 | Version of the remote desktop proxy image, shipped with the package |
BASTION_PORT | 8088 | Host port of the web console |
BASTION_SSHD_PORT | 8089 | Host port of the built-in SSH service |
BASTION_SSHD_ENABLE | true | Whether the built-in SSH service runs. Set to false if you do not need it |
TZ | Asia/Shanghai | Time zone used for logs, recordings and scheduled jobs |
LICENSE_SERVER | https://license.reallysec.com | Licence server address. No change is needed for offline licences |
UPDATE_URL | The version information address on the Reallysec release site | Where to check for new versions. When empty (UPDATE_URL=), no online check is ever made |
HTTPS_PROXY, NO_PROXY | Empty | Set these to reach the licence server and release site through a proxy, for example http://proxy.example.com:3128 |
BASTION_TLS_CERT, BASTION_TLS_KEY | On new installations, the certificate in data/tls/ | Container paths of the HTTPS certificate and private key. Empty means HTTP |
BASTION_TRUSTED_PROXIES | Empty | With a reverse proxy in front, the proxy's network ranges, separated by spaces |
COMPOSE_PROJECT_NAME | bastion | Compose project name, which keeps container names stable. Do not change it |
HTTPS
On a new installation install.sh generates a self-signed certificate and turns on HTTPS, so browsers warn that the certificate is not trusted. Over HTTP, sign-in passwords, tokens and session content travel in clear text, so production deployments should use HTTPS with your own certificate.
Replace the certificate
-
Overwrite
data/tls/cert.pemanddata/tls/key.pemin the installation directory with your certificate and private key. -
Restrict the private key:
chmod 600 data/tls/key.pem -
Restart the service:
docker compose restart bastion
Reverse proxy
You can also terminate TLS on a reverse proxy such as Nginx in front of the bastion. In that case, set BASTION_TRUSTED_PROXIES in .env to the proxy's network range, for example 172.16.0.0/12, and run docker compose up -d. The bastion only trusts X-Forwarded-For from those addresses, which is what lets the login log, access security and login policies see the real client IP.
The reverse proxy must support WebSocket, because terminals, remote desktops and live monitoring all use it.
Built-in SSH service
The built-in SSH service lets users sign in to the bastion with an SSH client and then pick an authorised SSH asset; see Accessing assets. Its host key is kept in data/ and survives container rebuilds. To turn the service off, set BASTION_SSHD_ENABLE=false and run docker compose up -d.
Proxy
Online licence activation and synchronisation, and online update checks, use HTTPS_PROXY and NO_PROXY from .env. Image downloads for a one-click upgrade are made by the upgrade helper on the host. To route them through a proxy, edit /etc/systemd/system/bastion-updater.service, uncomment Environment=HTTPS_PROXY=..., fill in the proxy address and run:
systemctl daemon-reload && systemctl restart bastion-updaterInstallation
Install RST Bastion from the offline package by unpacking it, running install.sh, reading the initial administrator password and signing in. Covers the directory layout and the upgrade helper.
Upgrade and backup
New-version notices, online and offline upgrade from the console, automatic rollback, manual upgrade and manual recovery, and how to back up and restore.