# LogicSRC credentials app — copy to .env and fill in. NODE_ENV=development PORT=8080 PUBLIC_ORIGIN=http://localhost:8080 # datastore: Turso (libSQL) in prod, or file:./data/local.db for local dev TURSO_DATABASE_URL=file:./data/local.db TURSO_AUTH_TOKEN= # auth — generate with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))" SESSION_SECRET=change-me-32-bytes-hex # email invites via Resend (optional — without it, invite tokens are returned in the API response) RESEND_API_KEY= CREDSHARE_EMAIL_FROM=LogicSRC # "Sign in with CoinPay" (optional) COINPAY_API_BASE=https://coinpayportal.com COINPAY_OAUTH_AUTHORIZE_URL=https://coinpayportal.com/oauth/authorize COINPAY_OAUTH_TOKEN_URL=https://coinpayportal.com/api/oauth/token COINPAY_OAUTH_USERINFO_URL=https://coinpayportal.com/api/oauth/userinfo COINPAY_OAUTH_CLIENT_ID= # Vault email recovery (opt-in, paid; needs RESEND_API_KEY and COINPAY_API_KEY/COINPAY_WEBHOOK_SECRET). # Escrow key for the server's share: 32 random bytes, base64. Keep it in the vault, not in git: # node -e "console.log(require('crypto').randomBytes(32).toString('base64'))" # Rotation: move the old key to VAULT_ESCROW_KEY_V, set the new one, bump VAULT_ESCROW_KEY_VERSION. VAULT_ESCROW_KEY= VAULT_ESCROW_KEY_VERSION=1 VAULT_RECOVERY_PRICE_USD=5