From 88860bc42a802a9e9610a3850ccbda9f3e91a951 Mon Sep 17 00:00:00 2001 From: nmemmert Date: Mon, 27 Apr 2026 10:58:09 -0400 Subject: [PATCH] Serve images first-party and remove necloud domain refs --- index.html | 8 ++++---- server.js | 17 ++++------------- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/index.html b/index.html index 90213fa..a1a9150 100644 --- a/index.html +++ b/index.html @@ -11,14 +11,14 @@ - + - + - + - + diff --git a/server.js b/server.js index 22eddee..d0f999d 100644 --- a/server.js +++ b/server.js @@ -34,8 +34,8 @@ const CHATBOT_FILE = path.join(DATA_DIR, 'chatbot-content.json') const BACKUP_DIR = path.join(DATA_DIR, 'backups') const DIST_DIR = path.join(__dirname, 'dist') const INDEX_FILE = path.join(DIST_DIR, 'index.html') -const PODCAST_ART_DIST_FILE = path.join(DIST_DIR, 'images', 'podcast-art.jpeg') -const PODCAST_ART_PUBLIC_FILE = path.join(__dirname, 'public', 'images', 'podcast-art.jpeg') +const DIST_IMAGES_DIR = path.join(DIST_DIR, 'images') +const PUBLIC_IMAGES_DIR = path.join(__dirname, 'public', 'images') const TITUS_STUDY_FILE = process.env.TITUS_STUDY_FILE ? path.resolve(__dirname, process.env.TITUS_STUDY_FILE) : path.join(__dirname, 'A_Study_of_Titus.pdf') @@ -1482,17 +1482,8 @@ app.get('/amazon', (_req, res) => { res.redirect(301, 'https://music.amazon.com/podcasts/202322bf-db86-4e7d-9a6b-4db7cbccbccf/verse-by-verse-with-nate') }) -app.get('/images/podcast-art.jpeg', (_req, res) => { - res.sendFile(PODCAST_ART_DIST_FILE, distErr => { - if (!distErr) return - - res.sendFile(PODCAST_ART_PUBLIC_FILE, publicErr => { - if (publicErr) { - res.redirect(301, 'https://necloud.us/images/podcast-art.jpeg') - } - }) - }) -}) +app.use('/images', express.static(DIST_IMAGES_DIR)) +app.use('/images', express.static(PUBLIC_IMAGES_DIR)) app.use(express.static(DIST_DIR))