Skip to content

Configuration

This page helps you configure the Reflex server and agent for your environment.

Use an environment variable, or an application.yaml in the config/ folder of the service’s working directory (reflex/config/ and agent/config/ in the release zip). Environment variables work in both. Put only the keys you want to change in the file.

reflex/config/application.yaml
auth:
url: https://reflex.example.com
db:
url: jdbc:postgresql://db.example.com:5432/reflex
user: reflex
password: change-me

Restart the service after a change. The full list is in server/settings.md (server) and agent/settings.md (agent).

VariableDefaultPurpose
PORT7000HTTP port.
AUTH_URLhttp://localhost:7000Public URL of the server. Use HTTPS in production. Agents and sign-in redirects use it.
AUTH_BASICtrueAllow username and password sign-in.
DEFAULT_USER, DEFAULT_PASSWORDadmin, adminAdmin account, created only on the first start.
VariableDefaultPurpose
DB_URLjdbc:sqlite:database/reflex.dbJDBC URL. Use jdbc:postgresql://host:5432/reflex for PostgreSQL.
DB_USER, DB_PASSWORDemptyDatabase credentials.
VariableDefaultPurpose
ENCRYPTION_KEYdemo keyEncrypts stored secrets. Generate one with java -jar reflex.jar --generate. Changing it invalidates API tokens.
SECURITY_OUTBOUND_ALLOW_PRIVATE_NETWORKStrueLet the server reach private addresses (agents, git, SFTP). Set false on shared deployments. Agents on a private network then stop working.

Set the redirect (callback) URL at your provider to <AUTH_URL>/callback.

VariablePurpose
OIDC_USEtrue enables OpenID Connect.
OIDC_CLIENT_ID, OIDC_CLIENT_SECRETClient credentials.
OIDC_DISCOVERYDiscovery URL (.../.well-known/openid-configuration).
OIDC_ADMIN_ROLERole claim that makes a user admin.
OIDC_NAME, OIDC_IMAGELabel and icon on the login button.
AZURE_USEtrue enables Microsoft Entra ID.
AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, AZURE_TENANTApp registration values.
AZURE_ADMIN_ROLERole that makes a user admin.
VariableDefaultPurpose
PROJECTS_LOCATIONprojectsFolder with project files.
ARTIFACTS_STORAGEfilesystemWhere screenshots, results and replays are kept: filesystem or s3.
ARTIFACTS_DIRECTORYartifactsFolder for filesystem storage.
ARTIFACTS_S3_BUCKET, _ENDPOINT, _ACCESS_KEY, _SECRET_KEY, _REGIONempty (region us-east-1)S3 or MinIO connection, each prefixed with ARTIFACTS_S3. Set the endpoint for MinIO.
REPLAY_RETENTION_FAILED_DAYS, REPLAY_RETENTION_SUCCEEDED_DAYS30, 3How long replays are kept.
VariableDefaultPurpose
AGENT_KEYdevShared key for agents registered by URL. Change it.
AGENT_PORT7001Port the agent listens on.
AGENT_HOST0.0.0.0Interface to bind. Use 127.0.0.1 for a local-only agent.
AGENT_URLhttp://localhost:7000Origin of the Reflex web UI (CORS). It is not the address you register.
AGENT_THREADScpuNumber of threads. cpu matches the CPU count.
REFLEX_SERVER, REFLEX_ENROLLemptyServer URL and pair code for an agent that connects to the server. See Agents.
AGENT_FILES_CONFINE_TO_WORKSPACEfalseBlock scripts from reading files outside their workspace. Set true on shared agents.
AGENT_SSH_STRICT_HOST_KEYSfalseOnly connect over SSH and SFTP to known hosts.

The agent downloads Chrome for Testing and a matching ChromeDriver on the first browser start. It supports Linux and Windows on amd64, and Linux arm64 with Chrome 153 or newer. macOS is not supported. Linux needs the Chromium shared libraries installed.

VariableDefaultPurpose
CHROME_VERSIONlatestChrome for Testing version to download.
AGENT_BROWSER_PATHemptyUse this system Chromium or Chrome instead of downloading one.
AGENT_CHROMEDRIVER_PATHemptyChromeDriver matching that browser. Selenium needs it; Playwright does not.
AGENT_SELENIUM_DOCKERfalseRun Selenium browsers in Docker containers. Needs the Docker socket.

On Linux arm64 with an older pinned Chrome, install the distribution packages and point to them:

Terminal window
sudo apt-get install chromium chromium-driver
export AGENT_BROWSER_PATH=/usr/bin/chromium
export AGENT_CHROMEDRIVER_PATH=/usr/bin/chromedriver

For OCR, put .traineddata files in the agent’s tessdata/ folder. The release includes English and Dutch.

Put custom plugin JARs and JDBC drivers for the Sql library in the agent’s plugins/ folder, then restart the agent.