Share domain is instantadpay.link (Marty 2026-11-04: ctbgo.com confuses people; a branded domain, bought on NameSilo $8.39): SHARE_HOSTS default instantadpay.link,ctbgo.com,mylinehq.com so every old ctbgo.com link keeps working; shareDomain default instantadpay.link; chatbot short-banner example on the new domain; my.js?v=20261104il, KNOWLEDGE_DATE 2026-11-04

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-04 06:18:01 -06:00
parent fb2383ffae
commit 769c04e639
4 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -838,7 +838,7 @@ function siteConfig() {
// share-link domain (2026-10-20, Marty): member invite links go out as https://<shareDomain>/<username>, which 302s to
// /join/<username> here, so shared links do not carry instantadpay.com (Spamhaus DBL). '' = old instantadpay.com/join links.
// Switch to the spare (mylinehq.com) if one gets flagged. Old links keep working either way.
shareDomain: 'ctbgo.com',
shareDomain: 'instantadpay.link',
// BixPay Visa card (2026-10-29, docs/BIXPAY-INTEGRATION.md): '0' = nothing shows anywhere (no Profile field, Wallet card,
// Overview card, promo tab, /bixpay guide, chatbot says coming soon). bixCompanyLink = the network fallback partner link
// (Marty's own PARTNER link, IB12143793); bixpayLiveSince is stamped when the switch is flipped on (the Overview card runs a week).
@@ -2199,12 +2199,12 @@ async function gameAnswer(g, slug, acct) { // the game token (only once a userna
return { ok: true, needUsername, username: acct.username || null, token: needUsername ? null : g.mint(acct, memberId), pass: gamePassMint(acct.email, slug) };
}
const SHARE_HOSTS = String(process.env.SHARE_HOSTS || 'ctbgo.com,mylinehq.com').split(',').map(x => x.trim().toLowerCase()).filter(Boolean);
const SHARE_HOSTS = String(process.env.SHARE_HOSTS || 'instantadpay.link,ctbgo.com,mylinehq.com').split(',').map(x => x.trim().toLowerCase()).filter(Boolean);
// Short banner image URLs (2026-11-03; Michael Camire via Marty: the Spaces CDN URLs run about 105 characters and get cut off
// by exchange and safelist image fields, so the banners never show). /b/<slug>/<file> serves the same file from
// game-banners/<slug>/ on the Spaces CDN, bytes in place (no redirect: some sites only HEAD the URL), on the share hosts as
// well as here: https://ctbgo.com/b/turkeydrop/728x90.png. A bare <size>.<ext> expands to <slug>-<size>.<ext>. Small
// well as here: https://instantadpay.link/b/turkeydrop/728x90.png. A bare <size>.<ext> expands to <slug>-<size>.<ext>. Small
// in-memory cache, 300 files, six hours, misses remembered one minute (a banner uploaded after someone asked for it shows up fast).
const BANNER_CDN = 'https://coolify-saasytop.nyc3.cdn.digitaloceanspaces.com/game-banners/';
const BANNER_TYPES = { png: 'image/png', jpg: 'image/jpeg', jpeg: 'image/jpeg', webp: 'image/webp', gif: 'image/gif' };
@@ -2240,7 +2240,7 @@ const server = http.createServer(async (req, res) => {
const p = u.pathname;
// short banner images, served on every host (share hosts included) before the share-host redirect
if ((req.method === 'GET' || req.method === 'HEAD') && p.startsWith('/b/') && await serveBanner(req, res, p)) return;
// share-link domains (ctbgo.com, mylinehq.com): /<ref> goes to that member's join page, anything else to the same path
// share-link domains (instantadpay.link active since 2026-11-04; ctbgo.com and mylinehq.com still answer): /<ref> goes to that member's join page, anything else to the same path
// here. 302 (not 301) so links never get pinned in caches; the query (?v= angle, ?promo=) rides along.
{ const sh = String(req.headers.host || '').toLowerCase().replace(/:\d+$/, '').replace(/^www\./, '');
if (SHARE_HOSTS.includes(sh)) {