fix(media): refuse local disk when a NAS share is configured
CI / build (push) Has been cancelled

A bind-mounted host directory made the app report storage as ready while
media landed on the container host's local filesystem, so the NFS export was
never actually used. mediaStorage() now reads the mount table: a share written
as host:/export is only accepted when the media root is on a network
filesystem, otherwise uploads, edits and filing are blocked with the real
device and the fix. Settings and the Media page show the detected filesystem
and host-mount steps, README section 9 documents the OS-level mount (including
Docker-in-LXC) with docker-compose.nfs.yml as the alternative, and the E2E
suites use path-style shares for local test directories.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
2026-11-21 00:45:36 +00:00
parent 2fc71883d7
commit 982f9048e1
14 changed files with 439 additions and 33 deletions
+3 -1
View File
@@ -86,7 +86,9 @@ test.describe("media library and video sharing", () => {
const configured = await page.request.put(`${BASE}/api/dev/storage`, {
data: {
nfsShare: "e2e-nas:/export/church",
// Path-style share: this suite writes to a local E2E directory. A
// NAS-style share name would (correctly) demand a real network mount.
nfsShare: ARCHIVE_ROOT,
archivePath: ARCHIVE_ROOT,
archiveFolder: ARCHIVE_FOLDER,
},