Skip to content
Snippets Groups Projects
Commit 8bff6cb5 authored by Sebastian Karius's avatar Sebastian Karius
Browse files

dev coder filebrowser module

parent 717acd4e
No related branches found
No related tags found
No related merge requests found
......@@ -17,9 +17,11 @@ if [ "${DB_PATH}" != "filebrowser.db" ]; then
DB_FLAG=" -d ${DB_PATH}"
fi
# set baseurl if owner_name and workspace_name is set
# set baseurl if subdomain = false (owner_name and workspace_name is set), else reset to "" for use with subdomain = true
if [ "${OWNER_NAME}" != "" ] && [ "${WORKSPACE_NAME}" != "" ]; then
filebrowser config set --baseurl "/@${OWNER_NAME}/${WORKSPACE_NAME}.${RESOURCE_NAME}/apps/filebrowser" > ${LOG_PATH} 2>&1
else
filebrowser config set --baseurl "" > ${LOG_PATH} 2>&1
fi
printf "📂 Serving $${ROOT_DIR} at http://localhost:${PORT} \n\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment