Skip to main content
Installation

Configuration reference

What each entry in .env and config.yaml in the installation directory does, how changes take effect, and the settings needed to serve the portal behind an HTTPS reverse proxy.

Configuration lives in two places, both in the installation directory:

  • .env: passwords, secrets, the port, the access URL and the version-check URL. Created by install.sh with mode 600, with a comment above each entry.
  • config.yaml: sessions, database, availability checks, asset facts and identity sources. ${VARIABLE} references are expanded from the environment at start-up, so secrets stay in .env.

Applying changes

ChangeAction
.envRun docker compose up -d in the installation directory. Containers whose settings changed are recreated
config.yamlRun docker compose restart. The file is read only at start-up
Settings in the admin console (Feishu sign-in, appearance and so on)Take effect on save, with no restart

.env

Some technical identifiers (environment variables, package and service names) keep the earlier name rstnav.

EntryDescription
RSTNAV_VERSIONInstalled version, matching the image tag. Updated automatically by one-click upgrades
RSTNAV_PORTPort the portal listens on at the host, 8080 by default
MYSQL_ROOT_PASSWORD, MYSQL_PASSWORDDatabase root password and application account password, generated at installation
RSTNAV_SESSION_SECRETSession signing secret, at least 32 characters, generated at installation. Also used to encrypt the stored Feishu App Secret and staff Feishu docs authorisations
RSTNAV_ADMIN_PASSWORDPassword for the local admin account created on first start. Changing it after the account exists does not change the password
RSTNAV_BASE_URLAddress staff use to reach the portal, such as https://nav.corp.local. Callback URLs for single sign-on and Feishu are built from it
RSTNAV_UPDATE_URLVersion-check URL, https://updates.reallysec.com/releases/rst-index/latest.json by default. Set it to empty to stop all check requests
FEISHU_APP_ID, FEISHU_APP_SECRETReferenced when Feishu sign-in is configured in config.yaml
LDAP_BIND_PASSWORDLDAP service account password, referenced in config.yaml
OIDC_CLIENT_SECRETOIDC client secret, referenced in config.yaml

Avoid changing the session secret. After a change everyone must sign in again, the Feishu App Secret saved in the admin console can no longer be decrypted and must be entered again, and staff must authorise Feishu docs again.

config.yaml

server

SettingDefaultDescription
addr:8080Listen address inside the container. Usually left as is
base_urlReferences the access URL in .envBrowser address. Single sign-on callback URLs are built from it
session_secretReferences .envSession signing secret
session_ttl12hSession lifetime
cookie_securefalseSet to true when the portal is reached over HTTPS
trusted_proxies[]IP addresses of reverse proxies in front of the portal. The audit log uses them to record the real client address

Sessions are stateless, but each request reloads the user, departments and admin rights, so permission changes in the admin console apply at once. Accounts disabled in the directory stop working only when their session expires, because the portal does not query the directory again.

database and bootstrap

database connects to the MySQL included in the package and does not need changes. bootstrap defines the local administrator created on first start, with the user name admin.

health

Availability checks: the portal checks the addresses in the navigation on a schedule, shows their status on the cards, and lists the status of every public link under Asset register > Availability in the admin console.

SettingDefaultDescription
enabledtrueSet to false to turn availability checks off
interval5mCheck interval, minimum 1m
timeout5sTimeout for each check
concurrency16Number of checks run in parallel
scopepublicpublic checks company and department links only; all also checks personal links
insecure_skip_verifytrueSkip HTTPS certificate verification, since self-signed certificates are common on internal networks
faviconstrueFetch site icons for cards, within the same scope

HTTP and HTTPS addresses get a HEAD request without following redirects. A status code below 500 counts as up; 500 or above, a connection failure or a timeout counts as down. Other schemes (ssh, rdp and so on) count as up when a TCP connection succeeds.

With scope: all the server visits the addresses staff have bookmarked privately, which lets staff probe whether addresses are reachable from the server's network position. The default public does not check personal links and refuses manual checks on them.

Site icons are fetched only from the same host, and SVG is not accepted. On isolated networks, external sites have no icon and the card shows the first character of the name instead.

facts

source_priority ranks asset fact sources by trust, most trusted first. Sources not listed rank after those listed. When facts conflict, the suggested value follows this order. See Asset register. The default is [cmdb, zabbix, firewall, waf, elastic]. Enterprise feature.

auth

SettingDescription
admin_groupsUsers whose external groups match any entry become company admins when they sign in. Full DNs and CN names are both accepted. Admins set manually in the console are not affected by sync
providersList of identity sources. Only the local account local is defined by default. Each source has an id, a type (local, ldap, oidc, cas, saml or feishu), a name (the button label on the sign-in page) and an optional trust_email

With trust_email: true, when someone signs in with that source for the first time and exactly one account from another source has the same email address (case-insensitive), they enter that account instead of creating a new one. Turn it on only for sources where staff cannot change their own email address.

For each identity source, see AD/LDAP, Single sign-on and Feishu.

Serving over HTTPS

The portal itself serves HTTP. To offer HTTPS to staff:

  1. Put a reverse proxy such as Nginx in front of the portal to terminate TLS and forward to the portal port.
  2. Change the access URL in .env to an https:// address.
  3. In config.yaml, set cookie_secure: true and add the reverse proxy's IP to trusted_proxies.
  4. Run docker compose up -d and then docker compose restart.

When the access URL changes, update the callback URLs registered with your IdP and on the Feishu Open Platform as well.

On this page