Add /drops/: login-protected, view-only shot previews
Deploy / deploy (push) Successful in 39s

- nginx basic auth on /drops/ (page and clips); login file and clips live
  on the server only (docker/auth, docker/drops), never in git or the image
- Fails closed: missing login file returns 500; no-store, noindex
- Page reads manifest.json from the server, shows "taken down" when empty
- Player hides download/cast/PiP, blocks right-click, confidential overlay
- DEPLOY.md step 8: how to share a drop and take it down

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
twotalesanimation
2026-10-20 14:10:02 +02:00
parent 613d46d067
commit 7150c3f3d2
7 changed files with 191 additions and 0 deletions
+16
View File
@@ -30,6 +30,22 @@ server {
try_files $uri $uri/ $uri.html =404;
}
# Private shot previews: login required for the page and the clips (see DEPLOY.md).
# The login file and the clips live on the server only. If the login file is missing,
# nginx answers 500, so /drops/ is never left open. ^~ beats the media regex above,
# so nothing in here is cached by the browser or Cloudflare.
location ^~ /drops/ {
auth_basic "Two Tales VFX";
auth_basic_user_file /etc/nginx/auth/drops.htpasswd;
add_header Cache-Control "private, no-store";
add_header X-Robots-Tag "noindex, nofollow";
try_files $uri $uri/ $uri.html =404;
location ^~ /drops/files/ {
alias /srv/drops/;
}
}
# Offline worker for /set must always be revalidated so updates roll out
location = /set/sw.js {
add_header Cache-Control "no-cache";