Configuration

CHOps is configured using a .env file in the project root folder. This file contains settings like your admin username, password, and server port.

To create your config file, copy the example:

cp .env.example .env

Then open .env in a text editor and change the values.

What about ClickHouse® connection details? Those are configured in the browser UI, not in this file. After logging in, go to Administration > Cluster Management to add your ClickHouse® nodes.

Environment Variables

Super Admins (Required)

These are the login credentials for CHOps itself (not your ClickHouse® users). You need at least one super admin. You can have up to three.

VariableRequiredDefaultWhat it does
SUPER_ADMIN_1Yes-Username for the first admin account
SUPER_ADMIN_1_PASSWORDYes-Password for the first admin account
SUPER_ADMIN_2No-Username for a second admin (optional)
SUPER_ADMIN_2_PASSWORDNo-Password for the second admin
SUPER_ADMIN_3No-Username for a third admin (optional)
SUPER_ADMIN_3_PASSWORDNo-Password for the third admin

Example:

SUPER_ADMIN_1=admin
SUPER_ADMIN_1_PASSWORD=MySecurePassword123

Server Settings

VariableRequiredDefaultWhat it does
PORTNo3000Which port CHOps runs on
NODE_ENVNodevelopmentSet to production when deploying for real use
SESSION_SECRETYes-A random string used to secure login sessions and encrypt stored credentials. Generate one with: openssl rand -hex 32. Important: if you change this after setup, all stored ClickHouse® passwords will need to be re-entered (they are encrypted with this secret).

Security Settings

VariableRequiredDefaultWhat it does
DISABLE_ENV_LOGINNofalseSet to true to disable the .env password fallback. When enabled, only database users can log in. Recommended after initial setup.

Email Settings (Optional)

These are only needed if you want CHOps to email passwords to new users when you create their accounts. If you skip these, you will need to share passwords manually.

VariableRequiredDefaultWhat it does
SMTP_HOSTNo-Your email server address (e.g. smtp.gmail.com)
SMTP_PORTNo587Your email server port
SMTP_USERNo-Email login username
SMTP_PASSNo-Email login password
SMTP_FROMNoCHOps <noreply@chops>The "from" address shown in emails

The Connection Bar

At the top of every page, you will see a connection bar with three fields:

  • Node: A dropdown that lists your ClickHouse® servers. When you switch nodes, the username, password, and port automatically update to match that node's saved credentials. You can override them manually if needed.
  • User: The ClickHouse® username to connect with.
  • Password: The ClickHouse® password.

Click the plug icon to test the connection. A green dot means connected, red means disconnected.

Dark Mode / Light Mode

Click the sun or moon icon in the top-right corner to switch themes. Your preference is saved in your browser.

Date and Time Format

All dates and times in CHOps use 24-hour format: 2026-05-13 14:30:00. This matches the format ClickHouse® expects.