Skip to Content
Tobin Docs

Environment variables

The optional variables the application and tools read. No .env file is required.

No .env file is required and none exists in the repository. Never commit credentials; .env* files are git-ignored.

VariablePurpose
TOBIN_DB_PATHThe database file. Required when NODE_ENV=production; otherwise defaults to .data/tobin-dev.sqlite relative to the app directory (git-ignored).
PORTMust match the --port the server is started with (default 8787).
TOBIN_BRIDGE_EXEPath to the Rust bridge executable (sandbox console and bridge-backed tests).
TOBIN_STELLAR_CLEARING_CONTRACTPublic id of the deployed clearing contract used by the execution-plan adapter.
TOBIN_SECOND_ACCOUNTPublic key of the second participant account for the owner-run settlement tool.
TOBIN_ADMIN_ACCOUNT_RECORD, TOBIN_DEPLOYMENT_RECORD, TOBIN_BATCH_ID, TOBIN_VALIDATION_CREATOR, TOBIN_REPO_ROOTOwner-run tool inputs; see apps/web-console/lib/stellar/.
TOBIN_DEMO_PASSWORDPassword for the db:seed-demo demonstration users (refused in production).
TOBIN_BROWSER, TOBIN_WIDTHBrowser path and viewport width for the browser journeys.

Docs app

The docs app needs no environment variables. The documentation, website and repository URLs are constants in apps/docs/lib/site.ts.

Keys and seeds

The documentation, the examples and the tools never need a private key or seed phrase in the repository. Keep disposable Testnet keys outside the repository and never paste them into issues, pull requests or chat.

On this page