diff --git a/.env.example b/.env.example index 76a483d8f..c1cd00adb 100644 --- a/.env.example +++ b/.env.example @@ -40,6 +40,10 @@ NODE_MAX_OLD_SPACE_SIZE=2048 # CORS origin for the frontend when served from a different domain than APP_URL # CLIENT_URL=https://app.example.com +# Container folder used as the top of the library creation folder picker. +# Defaults to / when unset. Set to /books to hide other container root folders. +# LIBRARY_BROWSE_ROOT=/books + # Set to false only if your platform manages bind mount ownership externally. # BOOKORBIT_FIX_PERMISSIONS=true diff --git a/README.md b/README.md index e42dd87c7..976f31774 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,8 @@ JWT_SECRET= # signs login tokens - openssl rand -hex 32 SETUP_BOOTSTRAP_TOKEN= # one-time setup wizard token - openssl rand -hex 16 ``` +Optionally set `LIBRARY_BROWSE_ROOT=/books` to start the library folder picker at `/books` instead of `/`. + Then start: ```bash diff --git a/client/src/features/library/components/FolderPickerModal.vue b/client/src/features/library/components/FolderPickerModal.vue index ca9cb2b7d..0f7aac862 100644 --- a/client/src/features/library/components/FolderPickerModal.vue +++ b/client/src/features/library/components/FolderPickerModal.vue @@ -1,7 +1,7 @@