# MongoDB # Root credentials are required by docker-compose (`mongod --auth`) and must match # the user:password embedded in MONGO_URI below. Mongo is started by Compose using # MONGO_INITDB_ROOT_* from this file; the API reads MONGO_URI from this same file at # runtime (see config.rs), so the username and password only need to be set once. MONGO_INITDB_ROOT_USERNAME=root MONGO_INITDB_ROOT_PASSWORD=change_me_in_prod # The `mongodb` hostname only resolves inside the Docker Compose network; when # running the API directly via `cargo run`, point this at your local Mongo. MONGO_URI=mongodb://root:change_me_in_prod@mongodb:27017/txio?authSource=admin # API RUST_LOG=info JWT_SECRET=your_jwt_secret_here BREVO_API_KEY=your_brevo_api_key_here # Optional, comma-separated roster of emails **reserved for admin provisioning**. # These addresses CANNOT be claimed via /auth/register, OAuth signup, or # update-email. Admin privilege is a durable User.is_admin flag set only via: # cargo run -p txio-api --bin bootstrap_admin -- --email admin@txio.io --password '...' # Leave empty to disable reserved emails (and thus bootstrap_admin). # Never distribute this list to the CLI client — server-side config only. ADMIN_EMAILS= # Sender for OTP emails. Must be a verified sender/domain in your Brevo account. EMAIL_FROM=no-reply@txio-backend.com EMAIL_FROM_NAME=txio Team GROQ_API_KEYS=your_first_groq_key,your_second_groq_key GROQ_MODEL=llama-3.3-70b-versatile PORT=8000 FRONTEND_URL=http://localhost:3000 API_URL=http://localhost:8000 # Google OAuth (optional; required only for "Sign in with Google") GOOGLE_CLIENT_ID= GOOGLE_CLIENT_SECRET= GOOGLE_REDIRECT_URL=http://localhost:8000/api/v1/auth/google/callback # GitHub OAuth (optional; required only for "Sign in with GitHub") GITHUB_CLIENT_ID= GITHUB_CLIENT_SECRET= GITHUB_REDIRECT_URL=http://localhost:8000/api/v1/auth/github/callback # Frontend NEXT_PUBLIC_API_URL=http://localhost:8000/api/v1 # Desktop VITE_RPC_URL=https://fullnode.mainnet.sui.io:443