- 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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user