Site host from one module: host.js exports SITE_HOST/SITE_URL and every module, email, Telegram post, QR, ad click URL and OG tag reads it (no more hard-coded test hostname); public pages carry {{SITE_URL}} filled at serve time; frame check carries the curtain pass for our own hosts so a test ad can point at a spin link; stale IAP sitemap removed

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-07 08:52:04 -05:00
parent 6da444c790
commit ad744d8c0f
29 changed files with 135 additions and 111 deletions
+2 -1
View File
@@ -3,12 +3,13 @@
// sends each step when it comes due; a signed unsubscribe link stops it.
// Sequence copy lives in DATA_DIR/drip.json (admin-editable) with the
// defaults below. Dual-mode storage like the rest of the site (MySQL / JSON).
const { SITE_URL } = require('./host');
const fs = require('fs');
const path = require('path');
const crypto = require('crypto');
const db = require('./db');
let DATA_DIR = null, mailer = null, accounts = null, chain = null, SITE = 'https://linkspin-test.saasy.top';
let DATA_DIR = null, mailer = null, accounts = null, chain = null, SITE = SITE_URL;
// hours = time after the account was created. Copy drafted through Marty's
// Branded Voice engine (one framework per email: gain, logic, PAS, logic,