levineuwirth.org/static
Levi Neuwirth 23250d8782 Fix popup previews: proxy prefix-strip bug, arXiv IDs, Wikipedia images
The root cause of 'PDF/arXiv previews simply do not work' was twofold:

1. nginx/popup-proxy.conf was never installed on the VPS — every
   /proxy/* request (arXiv, PubMed, Internet Archive) returned nginx's
   default 404. Now installed (snippets + http{}-context cache/limit
   zones in conf.d, included in the vhost, nginx -t verified, reloaded).
2. The snippet itself had a latent bug that only surfaced once
   installed: with a VARIABLE upstream, a URI part on proxy_pass is
   passed literally — every request hit the upstream's homepage
   (archive.org HTML where JSON was expected, arXiv 429s, NCBI doc-page
   redirects). Fixed with explicit prefix-strip rewrites; bad cached
   responses purged. All three proxies verified returning real data,
   including a live arXiv title resolve.

Client-side improvements:
- arXiv match covers old-style IDs (cs/9901002, math.GT/0309136,
  cond-mat/...v1) alongside new-style, and .pdf-suffixed /pdf/ URLs
  (regex verified against six forms)
- Wikipedia popups show the article's lead image: pageimages rides
  along the existing extracts call (pithumbsize=320), rendered via a
  new https-only image slot in renderPopup with float styling;
  upload.wikimedia.org added to the CSP's img-src
- pdf-thumbs now walks all of static/ (pdfjs pruned), so /cv.pdf and
  /resume.pdf — the most-linked internal PDFs, previously thumbnail-less
  and therefore popup-less — get hover previews

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 12:06:13 -04:00
..
css Fix popup previews: proxy prefix-strip bug, arXiv IDs, Wikipedia images 2026-06-10 12:06:13 -04:00
fonts initial deploy! whoop 2026-03-17 21:56:14 -04:00
gpg GPG signing, embedding pipeline, visualization filter, search timing, sig popups 2026-03-20 20:14:49 -04:00
images Tooling, manifest, and content polish 2026-06-10 11:13:34 -04:00
js Fix popup previews: proxy prefix-strip bug, arXiv IDs, Wikipedia images 2026-06-10 12:06:13 -04:00
papers Branch preprint 2026-05-06 12:21:59 -04:00
templates Marks I 2026-05-07 23:51:14 -04:00
apple-touch-icon.png Branding: traced logo mark, regenerated favicons, og-image 2026-06-09 18:57:34 -04:00
cv.pdf Internal audit 2026-05-07 17:20:27 -04:00
cv.thumb.png Fix popup previews: proxy prefix-strip bug, arXiv IDs, Wikipedia images 2026-06-10 12:06:13 -04:00
favicon-96x96.png Branding: traced logo mark, regenerated favicons, og-image 2026-06-09 18:57:34 -04:00
favicon.ico Branding diet: logo sprite via <use>, lean favicon.ico, simple mask icon 2026-06-10 10:43:06 -04:00
favicon.svg Branding: traced logo mark, regenerated favicons, og-image 2026-06-09 18:57:34 -04:00
logo-sprite.svg Branding diet: logo sprite via <use>, lean favicon.ico, simple mask icon 2026-06-10 10:43:06 -04:00
og-image.png Branding: traced logo mark, regenerated favicons, og-image 2026-06-09 18:57:34 -04:00
resume.pdf Internal audit 2026-05-07 17:20:27 -04:00
resume.thumb.png Fix popup previews: proxy prefix-strip bug, arXiv IDs, Wikipedia images 2026-06-10 12:06:13 -04:00
site.webmanifest Tooling, manifest, and content polish 2026-06-10 11:13:34 -04:00
web-app-manifest-192x192.png Branding: traced logo mark, regenerated favicons, og-image 2026-06-09 18:57:34 -04:00
web-app-manifest-512x512.png Branding: traced logo mark, regenerated favicons, og-image 2026-06-09 18:57:34 -04:00