Skip to content
On this page

Configuration files and external services ​

Configuration files ​

DeploymentFile or resourcePurpose
Composeconfig.env in the package rootSelect infrastructure modes, enter external connections, and enable or disable work conversations.
Compose.secretsSecret store generated and reused by the installer.
Composehost/.envEnvironment configuration for application containers.
Composeinfrastructure/master/.envConfiguration for bundled infrastructure.
Kubernetesconfig.env in the package rootNodes, infrastructure connections, licensing, and deployment options. The installer writes back some generated credentials.
Kubernetestego-avatar-secrets SecretApplication secrets and credentials. Defaults to the tego-avatar namespace.
Kuberneteschart/values.yaml and --setHelm settings for replicas, resources, storage, and components.

Compose uses env.example as a generation template. Do not enter live secrets in it. Back up the generated .env and .secrets together; do not change secrets in only one copy.

Kubernetes config.env may contain live credentials after installation. Protect it as a secrets file. The installer reuses existing Secrets, so changes to config.env do not automatically replace all secrets.

Infrastructure modes ​

SettingValuesBehavior
POSTGRES_MODE, REDIS_MODE, S3_MODEbundled, externalStart the bundled service or connect an existing service.
LDAP_MODEbundled, external, disabledStart bundled LDAP, connect an existing directory, or leave LDAP disabled.
IM_MODEbundled, disabledStart the work conversation service or leave it disabled.

Standard installations default to bundled. Compose skips LDAP configuration if no license is entered. IM_MODE=disabled disables work conversations but retains pending items and notifications.

Set the mode before installation. Switching a bundled service to external mode does not migrate its data. Before replacing the database, cache, or object storage in an existing deployment, plan migration and recovery.

External services ​

Edit config.env in the package root. Set the required service to external and fill in the related connection fields.

ServiceFieldsPrerequisites
PostgreSQLPOSTGRES_HOST, POSTGRES_PORT, POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB, TEGO_MCP_DB, TEGO_KB_DBCreate all three application databases in advance and grant permissions for migrations and pgvector.
RedisREDIS_HOST, REDIS_PORT, REDIS_PASSWORDThe service is reachable and authentication works. The platform and knowledge service use different logical databases.
S3AVATAR_S3_ENDPOINT, AVATAR_S3_BUCKET, AVATAR_S3_ACCESS_KEY, AVATAR_S3_SECRET_KEY, AVATAR_S3_REGION, AVATAR_S3_FORCE_PATH_STYLEThe bucket and credentials work. The region and addressing style match the provider's requirements.
LDAPLDAP_HOST, LDAP_PORT, LDAP_BASE_DN, LDAP_ADMIN_DN, LDAP_ADMIN_PASSWORDThe directory is reachable, and the base DN and bind account are valid.

MinIO and Garage usually use path-style addressing (true). For an S3 service that uses virtual-hosted addressing, set this to false and supply the actual region. Changing only the endpoint does not complete the switch.

Application services initialize and write data in external mode. Kubernetes preflight also performs temporary database, Redis, and S3 read and write checks. See Kubernetes deployment for required permissions.

Model and knowledge configuration ​

Configure language models, embedding models, and rerankers on the platform's Model Services and Knowledge Service pages. Kubernetes config.env does not read the workflow product line's legacy TEGO_AI_OPENAI_*, EMBEDDING_*, or RERANKER_* settings. Adding them does not connect a model.

See Configure the default model for new digital employees and Knowledge service for the configuration and usage steps.

Apply configuration changes ​

Compose ​

Change non-secret application environment settings in host/.env. Back up the file, validate the Compose configuration, and recreate the affected services. Running restart alone does not reload environment variables.

From host, validate the configuration. This example recreates only the platform server tego-server after validation succeeds. The API is briefly unavailable.

bash
sudo docker compose --env-file .env -f docker-compose.yml config --quiet &&
  sudo docker compose --env-file .env -f docker-compose.yml up -d --no-deps --pull never --wait tego-server

config --quiet validates configuration without printing expanded values. Do not change shared secrets in .secrets as if they were ordinary environment variables.

Kubernetes ​

After updating Chart options or settings that the installer can synchronize, run the following from the deployment package root:

bash
sudo ./setup.sh
sudo ./setup.sh status

For existing Secrets:

  • The installer synchronizes a non-empty license and explicitly provided payment settings according to its rules. It fills in missing secrets for newly added services.
  • Changes in config.env do not automatically replace existing database, Redis, LDAP, or S3 credentials, or the audit master key.
  • The platform reads the PostgreSQL connection from DATABASE_URL in the Secret. MCP and the knowledge service also read a ConfigMap. When changing the database endpoint, update connections and credentials together so the services do not connect to different databases.
  • The installer uses configuration and Secret checksums to trigger updates to affected Pods. If a Secret was changed manually, rerun the installer or perform a rolling restart of affected services.

Database migrations and secret rotation require their own procedures. Do not delete a Secret to force the installer to generate replacement values.

After configuring, check service readiness and verify the affected sign-in, knowledge processing, or digital employee workflow. See Backup and restore for data and secret recovery.