Configuration reference
Tally reads literal environment settings. Keep its public HTTPS origin, browser address, and listening port consistent so sessions, CSRF checks, password reset links, and upgrades use the same address. For certificate setup, follow HTTPS in the installation guide.
Files and directories#
| Location | Contents |
|---|---|
~/.godel-tally/app | Executable, launcher, uninstall script, and runtime helpers. |
~/.godel-tally/config/tally.env | Saved configuration and credentials, readable only by the installing user (0600). |
~/.godel-tally/data | Private database data, TLS files, logs, container ownership records, and upgrade state. |
~/.godel-tally/runtime | Versioned PostgreSQL and ClickHouse executables with download verification records, plus any partial download that the next run resumes. |
Set TALLY_HOME before your first installation to move the entire installation. For individual locations, set TALLY_INSTALL_DIR, TALLY_CONFIG_DIR, TALLY_DATA_DIR, or TALLY_RUNTIME_DIR to absolute paths. Keep runtimes separate from application, settings, and data directories. Use the same custom configuration directory for updates and uninstall. Existing installations with settings in ~/.config/godel-tally (or the former XDG location) retain their saved paths; they are not silently moved. OS service registration files and Linux journal entries use the operating system's standard locations. An explicit TALLY_HOME takes precedence over legacy discovery.
The saved file contains KEY=value lines, not shell commands. Do not add shell quotes, export, or variable substitution. Edit it with a text editor and restart Tally. Keep TALLY_SECRET_KEY stable and backed up: it protects saved connector and email credentials.
Ports and addresses#
| Setting | Default | Purpose |
|---|---|---|
TALLY_URL | https://localhost:2357 | Exact public origin; no path or trailing slash. |
TALLY_HTTP_BIND | 127.0.0.1:2357 | Production UI and API listener. Use installer --port to change it. |
TALLY_POSTGRES_PORT | 5433 | Managed PostgreSQL host port; choose before provisioning. |
TALLY_CLICKHOUSE_PORT | 8124 | Managed ClickHouse HTTP host port; choose before provisioning. |
TALLY_UPGRADE_BIND | 127.0.0.1:8789 | Private upgrade runtime listener; do not expose it publicly. |
Managed database ports must be 1024–65535. Existing database URLs determine their own ports. Changing only a saved managed database port does not reconfigure an already-created container or database server; plan such changes explicitly.
Configuration reference#
The repository's .env.example documents runtime, database, retention, email, registry, and development settings. Production installation generates credentials; development defaults are for local use.
Settings saved in the console may take precedence over environment defaults, notably email delivery. Credentials belong in the protected server configuration, never in NEXT_PUBLIC_* variables or committed files.