- 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:
@@ -112,6 +112,49 @@ The workflow is already in the repo (`.gitea/workflows/deploy.yml`). In Gitea, o
|
||||
Test it: push any commit to `main` and watch **Actions** in the repo. The job should run
|
||||
`git pull` and `docker compose up -d --build`, then the site updates.
|
||||
|
||||
### 8. Private shot previews at /drops/
|
||||
|
||||
`/drops/` is a view-only screening page for vendors and clients. nginx asks for a login before
|
||||
it serves the page or any clip. The login file and the clips stay on the server only, in
|
||||
`docker/auth/` and `docker/drops/`, and are never committed. The page reads
|
||||
`docker/drops/manifest.json` to know which clips to show.
|
||||
|
||||
**Share a drop.** On your PC, convert the clips to web MP4 without re-encoding, then copy them up:
|
||||
|
||||
```bash
|
||||
ffmpeg -i SHOT.mov -map 0:v -map 0:a? -c copy -movflags +faststart -map_metadata -1 SHOT.mp4
|
||||
scp SHOT.mp4 manifest.json <you>@178.104.56.62:/opt/ttvfx_web/docker/drops/
|
||||
```
|
||||
|
||||
`manifest.json` looks like this (`src` is the file name in `docker/drops/`):
|
||||
|
||||
```json
|
||||
{ "title": "DH2 shot previews", "note": "For review only.",
|
||||
"files": [{ "name": "DH2_VFX_027_210_REF", "src": "DH2_VFX_027_210_REF.mp4" }] }
|
||||
```
|
||||
|
||||
Then set a password on the server. Use a new password for each vendor and drop:
|
||||
|
||||
```bash
|
||||
cd /opt/ttvfx_web
|
||||
mkdir -p docker/auth
|
||||
printf "vendor:$(openssl passwd -apr1)\n" > docker/auth/drops.htpasswd # prompts for the password
|
||||
docker compose up -d --force-recreate # first time only, so the folders get mounted
|
||||
```
|
||||
|
||||
Send `https://twotalesvfx.com/drops/`, the username `vendor` and the password through two
|
||||
different channels (for example, the link by email and the password by WhatsApp).
|
||||
|
||||
**Take it down.** No deploy is needed. Delete the clips and the login, and the page returns
|
||||
"taken down" or 500 straight away:
|
||||
|
||||
```bash
|
||||
rm /opt/ttvfx_web/docker/drops/* /opt/ttvfx_web/docker/auth/drops.htpasswd
|
||||
```
|
||||
|
||||
If the login file is missing, `/drops/` returns 500, so it is never left open. Nothing in
|
||||
`/drops/` is cached by browsers or Cloudflare.
|
||||
|
||||
---
|
||||
|
||||
## Day to day
|
||||
|
||||
Reference in New Issue
Block a user