|
| 1 | +# Desktop Rust Backend — Environment Variables |
| 2 | +# Copy to .env and fill in values from GCP Secret Manager: |
| 3 | +# gcloud secrets versions access latest --secret=<NAME> --project=based-hardware-dev |
| 4 | +# |
| 5 | +# IMPORTANT: Single-quote passwords that contain $ characters to prevent |
| 6 | +# dotenvy variable expansion (e.g. PASSWORD='my$ecret') |
| 7 | + |
| 8 | +# ─── Server ────────────────────────────────────────────────────────── |
| 9 | +PORT=8080 |
| 10 | + |
| 11 | +# ─── Firebase / Firestore ──────────────────────────────────────────── |
| 12 | +# Project ID determines which Firestore database to use |
| 13 | +FIREBASE_PROJECT_ID=based-hardware-dev |
| 14 | +# Path to GCP service account JSON (must have Firestore + Compute access) |
| 15 | +GOOGLE_APPLICATION_CREDENTIALS=/path/to/google-credentials.json |
| 16 | +# Firebase Web API key (for identity toolkit / auth token exchange) |
| 17 | +FIREBASE_API_KEY= |
| 18 | + |
| 19 | +# ─── AI ────────────────────────────────────────────────────────────── |
| 20 | +GEMINI_API_KEY= |
| 21 | + |
| 22 | +# ─── Encryption ────────────────────────────────────────────────────── |
| 23 | +# Used to decrypt user data with enhanced protection level |
| 24 | +ENCRYPTION_SECRET= |
| 25 | + |
| 26 | +# ─── Redis ─────────────────────────────────────────────────────────── |
| 27 | +# Used for conversation visibility, task sharing, app install counts |
| 28 | +REDIS_DB_HOST= |
| 29 | +REDIS_DB_PORT=6379 |
| 30 | +REDIS_DB_PASSWORD= |
| 31 | + |
| 32 | +# ─── Pinecone (vector embeddings) ──────────────────────────────────── |
| 33 | +PINECONE_API_KEY= |
| 34 | +PINECONE_HOST= |
| 35 | + |
| 36 | +# ─── AgentVM (GCE provisioning) ───────────────────────────────────── |
| 37 | +# All optional — defaults derived from FIREBASE_PROJECT_ID |
| 38 | +# GCE_PROJECT_ID= # defaults to FIREBASE_PROJECT_ID |
| 39 | +# GCE_SOURCE_IMAGE= # defaults to projects/{project}/global/images/family/omi-agent |
| 40 | +# AGENT_GCS_BUCKET= # defaults to based-hardware-agent |
| 41 | + |
| 42 | +# ─── OAuth (optional, for desktop sign-in) ─────────────────────────── |
| 43 | +# BASE_API_URL= |
| 44 | +# APPLE_CLIENT_ID= |
| 45 | +# APPLE_TEAM_ID= |
| 46 | +# APPLE_KEY_ID= |
| 47 | +# APPLE_PRIVATE_KEY= |
| 48 | +# GOOGLE_CLIENT_ID= |
| 49 | +# GOOGLE_CLIENT_SECRET= |
| 50 | + |
| 51 | +# ─── Observability (optional) ─────────────────────────────────────── |
| 52 | +# RUST_LOG=debug |
| 53 | +# POSTHOG_PERSONAL_API_KEY= |
| 54 | +# POSTHOG_PROJECT_ID=302298 |
| 55 | +# SENTRY_WEBHOOK_SECRET= |
| 56 | +# SENTRY_AUTH_TOKEN= |
| 57 | +# SENTRY_ADMIN_UID= |
| 58 | + |
| 59 | +# ─── Crisp (optional, customer support) ───────────────────────────── |
| 60 | +# CRISP_PLUGIN_IDENTIFIER= |
| 61 | +# CRISP_PLUGIN_KEY= |
| 62 | +# CRISP_WEBSITE_ID= |
0 commit comments