From 003c68d02739f3b90de3a02ceb9b3a7afa42311f Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 10 Apr 2026 19:52:43 +0000 Subject: [PATCH] readme: shadowing --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 805a2fb0..bb8406a9 100644 --- a/README.md +++ b/README.md @@ -608,10 +608,12 @@ and if you want to use config files instead of commandline args (good!) then her hiding specific subfolders by mounting another volume on top of them -for example `-v /mnt::r -v /var/empty:web/certs:r` mounts the server folder `/mnt` as the webroot, but another volume is mounted at `/web/certs` -- so visitors can only see the contents of `/mnt` and `/mnt/web` (at URLs `/` and `/web`), but not `/mnt/web/certs` because URL `/web/certs` is mapped to `/var/empty` +for example `-v /mnt::r -v /var/empty:web/certs:` (note: no permissions) mounts the server folder `/mnt` as the webroot, but another volume is mounted at `/web/certs` -- so visitors can only see the contents of `/mnt` and `/mnt/web` (at URLs `/` and `/web`), but not `/mnt/web/certs` because URL `/web/certs` is mapped to `/var/empty` the example config file right above this section may explain this better; the first volume `/` is mapped to `/srv` which means http://127.0.0.1:3923/music would try to read `/srv/music` on the server filesystem, but since there's another volume at `/music` mapped to `/mnt/music` then it'll go to `/mnt/music` instead +so, to shadow a file/folder, define a volume but leave out the `accs:` section + > ℹ️ this also works for single files, because files can also be volumes