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:
@@ -1,6 +1,7 @@
|
||||
// Wallet sign-in (SIWE / EIP-4361) + session store for LinkSpin.
|
||||
// Sessions are dual-mode like accounts.js: MySQL when DATABASE_URL is set,
|
||||
// volume JSON otherwise. All session functions are async.
|
||||
const { SITE_HOST } = require('./host');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const crypto = require('crypto');
|
||||
@@ -11,7 +12,7 @@ const db = require('./db');
|
||||
let DATA_DIR = null;
|
||||
let chain = null;
|
||||
let IS_PROD = false;
|
||||
let SITE = 'linkspin-test.saasy.top';
|
||||
let SITE = SITE_HOST;
|
||||
|
||||
const CHALLENGE_TTL = 10 * 60 * 1000;
|
||||
const SESSION_TTL = 24 * 60 * 60 * 1000; // 24h — forces a daily re-login so the login ad shows each day
|
||||
|
||||
Reference in New Issue
Block a user