On this page
Configuration files and external services
Configuration files
| Deployment | File or resource | Purpose |
|---|---|---|
| Compose | config.env in the package root | Select infrastructure modes, enter external connections, and enable or disable work conversations. |
| Compose | .secrets | Secret store generated and reused by the installer. |
| Compose | host/.env | Environment configuration for application containers. |
| Compose | infrastructure/master/.env | Configuration for bundled infrastructure. |
| Kubernetes | config.env in the package root | Nodes, infrastructure connections, licensing, and deployment options. The installer writes back some generated credentials. |
| Kubernetes | tego-avatar-secrets Secret | Application secrets and credentials. Defaults to the tego-avatar namespace. |
| Kubernetes | chart/values.yaml and --set | Helm 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
| Setting | Values | Behavior |
|---|---|---|
POSTGRES_MODE, REDIS_MODE, S3_MODE | bundled, external | Start the bundled service or connect an existing service. |
LDAP_MODE | bundled, external, disabled | Start bundled LDAP, connect an existing directory, or leave LDAP disabled. |
IM_MODE | bundled, disabled | Start 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.
| Service | Fields | Prerequisites |
|---|---|---|
| PostgreSQL | POSTGRES_HOST, POSTGRES_PORT, POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB, TEGO_MCP_DB, TEGO_KB_DB | Create all three application databases in advance and grant permissions for migrations and pgvector. |
| Redis | REDIS_HOST, REDIS_PORT, REDIS_PASSWORD | The service is reachable and authentication works. The platform and knowledge service use different logical databases. |
| S3 | AVATAR_S3_ENDPOINT, AVATAR_S3_BUCKET, AVATAR_S3_ACCESS_KEY, AVATAR_S3_SECRET_KEY, AVATAR_S3_REGION, AVATAR_S3_FORCE_PATH_STYLE | The bucket and credentials work. The region and addressing style match the provider's requirements. |
| LDAP | LDAP_HOST, LDAP_PORT, LDAP_BASE_DN, LDAP_ADMIN_DN, LDAP_ADMIN_PASSWORD | The 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.
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-serverconfig --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:
sudo ./setup.sh
sudo ./setup.sh statusFor 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.envdo not automatically replace existing database, Redis, LDAP, or S3 credentials, or the audit master key. - The platform reads the PostgreSQL connection from
DATABASE_URLin 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.