Set Environment Variables¶
Most deployment-level settings in TestGen — SMTP credentials, single sign-on, custom branding, and MCP options — are applied through environment variables. The steps to set a variable depend on the install mode. After setting any variable, restart the application for the change to take effect.
-
Navigate to the directory that contains the
docker-compose.ymlfile for TestGen.- If the instance was installed using dk-installer.exe, the file can be located under "AppData\Local\DataKitchenApps".
- If the instance was installed using dk-installer, the file can be located in the folder from which the Python installer was executed.
-
Add each variable under the x-common-variables section, one variable per line.
-
Restart the application.
-
Open the
~/.testgen/config.envfile in a text editor. -
Add each variable (one variable per line, no quotes).
-
Restart the application. Stop the running TestGen process with Ctrl+C in the terminal where it is running, then start it again.
-
Open the
values-tg-app.yamlfile used for the installation. -
Add each variable to the extraEnv list, in Kubernetes environment format.
-
Apply the change.
Tip
Some settings have a dedicated value in the chart, such as the SMTP server and the UI base URL. Prefer those over extraEnv where they exist. See the Values reference.