Skip to content

Instance administration

TTX-Zone is self-hosted. An instance is a set of containers on infrastructure you run, with one database and one place for uploaded files. This section is for whoever installs it and looks after it: the instance administrator.

An instance administrator runs the instance itself, above every organization on it: who may create organizations, the accounts, sign-in security, email, single sign-on, legal documents, the AI assistant and the activity log. It’s a role on the instance, separate from the roles inside an organization, and it gives no access to any organization’s exercises. One person can be both, with one account.

  • The first one is granted from the server’s console, because access to the server is the root of trust. Install shows how.
  • Later ones are granted by an existing administrator, from Accounts, unless INSTANCE_ADMIN_WEB_GRANTS=false keeps that to the console.
  • An instance administrator must use an authenticator app. Until they enroll one, the workspace stays closed to them.

Open the avatar menu, top right, and choose Instance administration. Only instance administrators see that entry. The context bar then shows This instance instead of an organization, and the menu lists the workspace’s sections:

Section What you do there Guide
Tenancy rule Decide who may create organizations Tenancy and accounts
Accounts Create, suspend, reset and sign out accounts; grant administrators Tenancy and accounts
Organizations Create organizations and name their Exercise Program Manager Tenancy and accounts
Legal documents Publish terms of service and a privacy policy Tenancy and accounts
Email Configure outgoing email Email
Sign-in security Password rules and which roles need a second factor Tenancy and accounts
Single sign-on Sign in through your identity provider Single sign-on
AI assistant Turn the assistant on or off, see its use AI assistant
Activity log Read what happened, forward it to a SIEM Logs and activity

Some messages in the application call this workspace Platform.

Services of an instancePeople reach the proxy over HTTPS. The proxy forwards to the frontend and to the API. The API and the worker use PostgreSQL and the uploads volume. Optionally, Players on the Internet reach a public proxy and a public API in a DMZ, which use the same PostgreSQL and uploads.Your networkDMZ, optional: the Players' public faceproxyTLSfrontendapiworkerpostgresuploadsproxy-publicapi-publicThe same database and files
Service What it does
postgres The database, PostgreSQL 16
migrate Applies database migrations, then exits
api The HTTP API
worker Background work: outgoing email, forwarding to a SIEM, retention
frontend The web application, served by Nginx
proxy Terminates TLS. The only service that publishes a port

Players who connect from the Internet can have a separate public face, which adds two more services: see Deployment models.

  1. Pick a deployment model and an installation size.
  2. Install and create the first administrator.
  3. Configure the settings that matter on a server; check network and ports with whoever runs your firewall.
  4. Choose who may create organizations.
  5. Set up email and, if you use one, single sign-on.
  6. Schedule backups and test a restore.