README: zone ids, staging facts (Coolify uuids, envs, root-only key files) and the domain-switch list

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-15 05:46:22 -06:00
parent 13d9cd7955
commit b71284e5c9
+7 -1
View File
@@ -13,7 +13,7 @@ Plain Node http server, no framework, the VBB / Downline Banners pattern. Contra
- **Delivery** (wire.js + vabnas.js): every verified view of a Boosted ad counts toward its guarantee (oldest Boost first) and is kept as an audit row (`vab_bviews`, 120 days). Boosted ads are starred on the ticker and fill the member pages' Boosted places, furthest-behind first. A Boost not delivered on-site within 30 days is finished through **Network Ad Space as a text ad** (pid 1) for exactly the views still owed; NAS impressions count toward the same guarantee. NAS was chosen over LinkSpin zones because NAS serves text ads natively; LinkSpin zones are banner placements.
- **Trust pack** (proof.js): `/ledger` (each Boost with every level paid, its place in the line, who was passed over, delivery), `/contract` (live facts), toasts of real events, one Telegram photo card per Boost (never twice: in-process guard + `docstore.claim`, nothing older than 2 hours), Terms / Earnings Disclaimer / Privacy (TrustClickz, 615 Green Valley Drive, Moody, AL 35004), the network footer from the hub (netsites.js, tracked LinkSpin links, code `nwvab`).
- **Promo kit** (promokit.js): `GET /api/promo-kit?u=`, `/promote`, 21 creatives `public/art/kit/vab-{free,spread,boost}-{tile,strip,leader,box,tower,social,square}.png`.
- **Network ad zones**: placeholders in `public/assets/common.js` ZONES and `ZONE_404` in server.js, ids empty until the LinkSpin zones exist.
- **Network ad zones**: 6 LinkSpin zones on Marty's account for viraladblitz.com (made 2026-11-15): `public/assets/common.js` ZONES (footer 728x90 ls-766b4a, phone 320x50 ls-66e157, ledger 468x60 ls-a5c68c, Boost 300x250 ls-754307, My page 468x60 ls-f880d2) and `ZONE_404` ls-c6c515 in server.js. They count as paid views only on viraladblitz.com (not on the staging host).
- **Hub report** (hubreport.js): each Boost as contract-bind / contract-spend, contract `viraladblitz`, off unless `HUB_ENABLED=1`.
- **Old links**: `/?<old>`, `/splashpg.php?pid=N&r=<old>`, `/lcp.php?pid=N&r=<old>` 301 to `/<network username>` from the oldrefs map (`POST /api/admin/oldrefs`), any other `*.php` to `/`.
- **Data**: docstore.js (MySQL via `DOCSTORE_URL`): document `vab.json` + row tables `vab_ads`, `vab_visits`, `vab_clicks`, `vab_bviews`; `hubreport.json`, `vab-nas.json`, `oldrefs.json` are documents too.
@@ -34,3 +34,9 @@ node tools/art.mjs # regenerate icon, OG image, proof cards, kit cre
```
Admin: `/admin` with the `ADMIN_TOKEN` (status, Boost delivery, member lookup, ad status, old-link map). Env: `.env.example`.
## Staging (2026-11-15)
Coolify app `p5abaw5evbtf9qpk0wbv0mfd` (compose, Crypto Projects/production, volume vab-data, connect_to_docker_network on) on https://vab.saasy.top, MySQL `6dgur7sbgbwcawlxen6du1jr` (viraladblitz-mysql, binlog expiry 3 h, in /root/db-hourly-dump.sh). Repo git.saasy.top/marty/viraladblitz (contracts: marty/viraladblitz-contracts, private). SITE_HOST=vab.saasy.top, TG_* empty (no sale cards), HUB_ENABLED=1, KEEPER_KEY from /root/.vab-keeper-key, ADMIN_TOKEN /root/.vab-admin-token, HUB_SECRET /root/.vab-hub-secret (root-only on core).
Domain switch (later, Marty's call): add https://viraladblitz.com + www to the Coolify domains, SITE_HOST=viraladblitz.com, TG_* from VBB, VAB_URL on InstantAdPay + LinkSpin, hub LOOKUP_SITES vab url, hub NETWORK_SITES, Reown allowlist, DNS apex A -> 140.99.254.14 in the rhi zone (keep MX), old crons off.