diff --git a/server.js b/server.js index 8037e82..d67a001 100644 --- a/server.js +++ b/server.js @@ -141,9 +141,10 @@ app.post('/api/chat', express.json({ limit: '10mb' }), async (req, res) => { // LEGACY / LOCAL ROUTES // ══════════════════════════════════════════════════════════════ +// Main page: local clone (reverse-proxy disabled — Sechenov banned our IPs) +app.use(express.static(PUBLIC_DIR)); app.get(['/old', '/old.html'], (_req, res) => res.sendFile(path.join(PUBLIC_DIR, 'index.html'))); app.get(['/iframe', '/iframe.html'], (_req, res) => res.sendFile(path.join(PUBLIC_DIR, 'iframe.html'))); -app.use('/assets', express.static(path.join(PUBLIC_DIR, 'assets'))); // Legacy HTML-only proxy used by /iframe.html app.get('/proxy/*', async (req, res) => { @@ -223,7 +224,8 @@ const CHAT_OVERLAY = ` `; -app.use(async (req, res) => { +// Reverse-proxy disabled: Sechenov banned us by IP. Left here for reference. +app.use('/_disabled_reverse_proxy', async (req, res) => { const upstreamUrl = UPSTREAM + req.url; // Build forward headers