Skip to main content
Installation

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

SettingDefaultDescription
BASTION_VERSIONThe package versionThe bastion version to run. Changed by the upgrade helper during a one-click upgrade, or by hand for a manual upgrade
BASTION_GUACD_VERSION1.6.0Version of the remote desktop proxy image, shipped with the package
BASTION_PORT8088Host port of the web console
BASTION_SSHD_PORT8089Host port of the built-in SSH service
BASTION_SSHD_ENABLEtrueWhether the built-in SSH service runs. Set to false if you do not need it
TZAsia/ShanghaiTime zone used for logs, recordings and scheduled jobs
LICENSE_SERVERhttps://license.reallysec.comLicence server address. No change is needed for offline licences
UPDATE_URLThe version information address on the Reallysec release siteWhere to check for new versions. When empty (UPDATE_URL=), no online check is ever made
HTTPS_PROXY, NO_PROXYEmptySet these to reach the licence server and release site through a proxy, for example http://proxy.example.com:3128
BASTION_TLS_CERT, BASTION_TLS_KEYOn new installations, the certificate in data/tls/Container paths of the HTTPS certificate and private key. Empty means HTTP
BASTION_TRUSTED_PROXIESEmptyWith a reverse proxy in front, the proxy's network ranges, separated by spaces
COMPOSE_PROJECT_NAMEbastionCompose 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

  1. Overwrite data/tls/cert.pem and data/tls/key.pem in the installation directory with your certificate and private key.

  2. Restrict the private key:

    chmod 600 data/tls/key.pem
  3. 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-updater

On this page