From dad3d320a38a5b2a3551b461358fcdaad4ac20e2 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 17 Jun 2025 11:52:28 +0200 Subject: [PATCH] add some config options --- tools/addon/filebrowser-quantum.sh | 34 ++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/tools/addon/filebrowser-quantum.sh b/tools/addon/filebrowser-quantum.sh index f158fd86..fc667513 100644 --- a/tools/addon/filebrowser-quantum.sh +++ b/tools/addon/filebrowser-quantum.sh @@ -7,12 +7,12 @@ function header_info { clear cat <<"EOF" - _______ __ ____ ____ __ - / ____(_) /__ / __ )_________ _ __________ _____ / __ \__ ______ _____ / /___ ______ ___ + _______ __ ____ ____ __ + / ____(_) /__ / __ )_________ _ __________ _____ / __ \__ ______ _____ / /___ ______ ___ / /_ / / / _ \/ __ / ___/ __ \ | /| / / ___/ _ \/ ___/ / / / / / / / __ `/ __ \/ __/ / / / __ `__ \ / __/ / / / __/ /_/ / / / /_/ / |/ |/ (__ ) __/ / / /_/ / /_/ / /_/ / / / / /_/ /_/ / / / / / / -/_/ /_/_/\___/_____/_/ \____/|__/|__/____/\___/_/ \___\_\__,_/\__,_/_/ /_/\__/\__,_/_/ /_/ /_/ - +/_/ /_/_/\___/_____/_/ \____/|__/|__/____/\___/_/ \___\_\__,_/\__,_/_/ /_/\__/\__,_/_/ /_/ /_/ + EOF } @@ -27,7 +27,7 @@ INFO="${BL}ℹ️${CL}" APP="FileBrowser Quantum" INSTALL_PATH="/usr/local/bin/filebrowser" -CONFIG_PATH="/usr/local/community-scripts/config.yaml" +CONFIG_PATH="/usr/local/community-scripts/fq-config.yaml" DEFAULT_PORT=8080 SRC_DIR="/" @@ -125,6 +125,17 @@ server: port: $PORT sources: - path: "$SRC_DIR" + config: + disableIndexing: false + indexingIntervalMinutes: 240 + exclude: + folders: + - "/proc" + - "/sys" + - "/dev" + - "/run" + - "/tmp" + - "/lost+found" auth: methods: noauth: true @@ -136,6 +147,17 @@ server: port: $PORT sources: - path: "$SRC_DIR" + config: + disableIndexing: false + indexingIntervalMinutes: 240 + exclude: + folders: + - "/proc" + - "/sys" + - "/dev" + - "/run" + - "/tmp" + - "/lost+found" auth: adminUsername: admin adminPassword: helper-scripts.com @@ -184,4 +206,4 @@ EOF else echo -e "${YW}⚠️ Installation skipped. Exiting.${CL}" exit 0 -fi \ No newline at end of file +fi