Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

feat(filebrowser): support subdomain = false #286

Merged
merged 21 commits into from
Sep 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update filebrowser/run.sh
Co-authored-by: Muhammad Atif Ali <me@matifali.dev>
  • Loading branch information
Seppdo and matifali authored Aug 30, 2024
commit 1a896e74f73df0bf5ca6d23aafcbea58d415b2cc
4 changes: 2 additions & 2 deletions filebrowser/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ if [ "${DB_PATH}" != "filebrowser.db" ]; then
DB_FLAG=" -d ${DB_PATH}"
fi

# 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
# set baseurl if subdomain = false
if [ "${SUBDOMAIN}" == "false" ]; 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
Expand Down