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,6 +3,7 @@
// ffmpeg + a DejaVu font in the image (Dockerfile). One job at a time; sources are the hosted promo
// videos in the Spaces bucket; output is hosted at promo/made/<username>/<slug>.mp4 and cached forever
// (a member's link never changes). Jobs live in DATA_DIR/video-jobs.json.
const { SITE_HOST } = require('./host');
const fs = require('fs');
const path = require('path');
const https = require('https');
@@ -112,7 +113,7 @@ async function render(job) {
await download(src.url, srcFile);
const { w, h } = await probe(srcFile); const total = (await durationOf(srcFile)) + 4.5;
setProgress(job.id, 20, 'Drawing your end card');
const link = 'linkspin-test.saasy.top/join/' + job.username;
const link = SITE_HOST + '/join/' + job.username;
await QR.toFile(qrFile, 'https://' + link, { width: Math.round(Math.min(w, h) * 0.34), margin: 1, color: { dark: '#061c17', light: '#ffffff' } });
const F = font(); const portrait = h > w; const big = Math.round(Math.min(w, h) * (portrait ? 0.075 : 0.07)), mid = Math.round(big * 0.62), small = Math.round(big * 0.48);
const qrSize = Math.round(Math.min(w, h) * 0.34);