Four features: - Backup: lib/backup-sync.ts pushes the full settings table and firm credentials (the deliberate exception to "credentials never leave the machine") to the master's bearer-gated /api/instances/backup — every 5 minutes when the content hash changed, within seconds of a settings or credential edit, and on the new backup-now command. Enabled by the master_backup_token setting. - Restore: a dead VPS's replacement pulls the backup and adopts its uuid/name, so roster, payouts and card links carry on. Pre-boot via seed-settings.js --restore-from (setup-linux.sh prompts for it) or the Settings page's restore picker (lib/backup-restore.ts). Stop the old machine first; the master 409s a live-name rename. - Proxy: the proxy_url setting routes BROKER traffic only — TopstepX REST + SignalR hub, Tradovate REST + websocket, Yahoo quotes — via lib/outbound-proxy.ts (axios agents, undici dispatcher, ws agent). The master link, reporter, catalog and backup push stay direct, so a dead proxy cannot take down the control channel. Restart to apply. - Multi-instance: AUTOFIRMER_DB moves the SQLite file so one checkout runs N instances; scripts/instances.json (per-device, gitignored) drives start-all/update-check, and add-instance.sh / remove-instance.sh manage the extra PM2 processes. Absent registry = single-instance behavior, unchanged. Instance 1 keeps port 3000 for the clicker and extension. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
80 lines
1.1 KiB
Plaintext
80 lines
1.1 KiB
Plaintext
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
|
|
|
# dependencies
|
|
/node_modules
|
|
/.pnp
|
|
.pnp.*
|
|
.yarn/*
|
|
!.yarn/patches
|
|
!.yarn/plugins
|
|
!.yarn/releases
|
|
!.yarn/versions
|
|
|
|
# testing
|
|
/coverage
|
|
|
|
# next.js
|
|
/.next/
|
|
/out/
|
|
|
|
# production
|
|
/build
|
|
|
|
# misc
|
|
.DS_Store
|
|
*.pem
|
|
|
|
# debug
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
.pnpm-debug.log*
|
|
|
|
# env files (can opt-in for committing if needed)
|
|
.env*
|
|
|
|
# vercel
|
|
.vercel
|
|
|
|
# typescript
|
|
*.tsbuildinfo
|
|
next-env.d.ts
|
|
|
|
# local runtime artifacts
|
|
*.sqlite
|
|
dev.log
|
|
dev.err
|
|
nul
|
|
scripts/lucid-cookies.json
|
|
scripts/lucid-config.json
|
|
scripts/*.png
|
|
autotrader.sqlite
|
|
|
|
# python
|
|
__pycache__/
|
|
*.pyc
|
|
|
|
# generated by the Windows setup / autostart scripts
|
|
scripts/.deps-hash
|
|
scripts/.python-cmd
|
|
scripts/.update.lock
|
|
scripts/update.log
|
|
|
|
# clicker virtualenv (Linux/Pi)
|
|
clicker/.venv/
|
|
scripts/.last-check
|
|
|
|
# The deploy template is meant to be read, unlike a real .env
|
|
!deploy/.env.example
|
|
|
|
# publish bookkeeping
|
|
deploy/publish.log
|
|
deploy/.last-check
|
|
deploy/.publish.lock
|
|
*.sqlite-shm
|
|
*.sqlite-wal
|
|
# per-instance databases (add-instance.sh)
|
|
.data/
|
|
# per-device instance registry (add-instance.sh)
|
|
scripts/instances.json
|