add some config options
This commit is contained in:
parent
244701e672
commit
dad3d320a3
@ -7,12 +7,12 @@
|
|||||||
function header_info {
|
function header_info {
|
||||||
clear
|
clear
|
||||||
cat <<"EOF"
|
cat <<"EOF"
|
||||||
_______ __ ____ ____ __
|
_______ __ ____ ____ __
|
||||||
/ ____(_) /__ / __ )_________ _ __________ _____ / __ \__ ______ _____ / /___ ______ ___
|
/ ____(_) /__ / __ )_________ _ __________ _____ / __ \__ ______ _____ / /___ ______ ___
|
||||||
/ /_ / / / _ \/ __ / ___/ __ \ | /| / / ___/ _ \/ ___/ / / / / / / / __ `/ __ \/ __/ / / / __ `__ \
|
/ /_ / / / _ \/ __ / ___/ __ \ | /| / / ___/ _ \/ ___/ / / / / / / / __ `/ __ \/ __/ / / / __ `__ \
|
||||||
/ __/ / / / __/ /_/ / / / /_/ / |/ |/ (__ ) __/ / / /_/ / /_/ / /_/ / / / / /_/ /_/ / / / / / /
|
/ __/ / / / __/ /_/ / / / /_/ / |/ |/ (__ ) __/ / / /_/ / /_/ / /_/ / / / / /_/ /_/ / / / / / /
|
||||||
/_/ /_/_/\___/_____/_/ \____/|__/|__/____/\___/_/ \___\_\__,_/\__,_/_/ /_/\__/\__,_/_/ /_/ /_/
|
/_/ /_/_/\___/_____/_/ \____/|__/|__/____/\___/_/ \___\_\__,_/\__,_/_/ /_/\__/\__,_/_/ /_/ /_/
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ INFO="${BL}ℹ️${CL}"
|
|||||||
|
|
||||||
APP="FileBrowser Quantum"
|
APP="FileBrowser Quantum"
|
||||||
INSTALL_PATH="/usr/local/bin/filebrowser"
|
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
|
DEFAULT_PORT=8080
|
||||||
SRC_DIR="/"
|
SRC_DIR="/"
|
||||||
|
|
||||||
@ -125,6 +125,17 @@ server:
|
|||||||
port: $PORT
|
port: $PORT
|
||||||
sources:
|
sources:
|
||||||
- path: "$SRC_DIR"
|
- path: "$SRC_DIR"
|
||||||
|
config:
|
||||||
|
disableIndexing: false
|
||||||
|
indexingIntervalMinutes: 240
|
||||||
|
exclude:
|
||||||
|
folders:
|
||||||
|
- "/proc"
|
||||||
|
- "/sys"
|
||||||
|
- "/dev"
|
||||||
|
- "/run"
|
||||||
|
- "/tmp"
|
||||||
|
- "/lost+found"
|
||||||
auth:
|
auth:
|
||||||
methods:
|
methods:
|
||||||
noauth: true
|
noauth: true
|
||||||
@ -136,6 +147,17 @@ server:
|
|||||||
port: $PORT
|
port: $PORT
|
||||||
sources:
|
sources:
|
||||||
- path: "$SRC_DIR"
|
- path: "$SRC_DIR"
|
||||||
|
config:
|
||||||
|
disableIndexing: false
|
||||||
|
indexingIntervalMinutes: 240
|
||||||
|
exclude:
|
||||||
|
folders:
|
||||||
|
- "/proc"
|
||||||
|
- "/sys"
|
||||||
|
- "/dev"
|
||||||
|
- "/run"
|
||||||
|
- "/tmp"
|
||||||
|
- "/lost+found"
|
||||||
auth:
|
auth:
|
||||||
adminUsername: admin
|
adminUsername: admin
|
||||||
adminPassword: helper-scripts.com
|
adminPassword: helper-scripts.com
|
||||||
@ -184,4 +206,4 @@ EOF
|
|||||||
else
|
else
|
||||||
echo -e "${YW}⚠️ Installation skipped. Exiting.${CL}"
|
echo -e "${YW}⚠️ Installation skipped. Exiting.${CL}"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user