From 20d97a25dd832256c1deee2b66c141ae02d79520 Mon Sep 17 00:00:00 2001 From: Yves ANDOLFATTO <145037627+yandolfat@users.noreply.github.com> Date: Fri, 18 Oct 2024 14:21:36 +0200 Subject: [PATCH] fix(filebrowser): support custom base_url in case of custom db path (#320) Co-authored-by: Muhammad Atif Ali Co-authored-by: Muhammad Atif Ali --- filebrowser/README.md | 6 +++--- filebrowser/run.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/filebrowser/README.md b/filebrowser/README.md index 8665d82..1b53ffa 100644 --- a/filebrowser/README.md +++ b/filebrowser/README.md @@ -14,7 +14,7 @@ A file browser for your workspace. ```tf module "filebrowser" { source = "registry.coder.com/modules/filebrowser/coder" - version = "1.0.19" + version = "1.0.22" agent_id = coder_agent.example.id } ``` @@ -28,7 +28,7 @@ module "filebrowser" { ```tf module "filebrowser" { source = "registry.coder.com/modules/filebrowser/coder" - version = "1.0.19" + version = "1.0.22" agent_id = coder_agent.example.id folder = "/home/coder/project" } @@ -39,7 +39,7 @@ module "filebrowser" { ```tf module "filebrowser" { source = "registry.coder.com/modules/filebrowser/coder" - version = "1.0.19" + version = "1.0.22" agent_id = coder_agent.example.id database_path = ".config/filebrowser.db" } diff --git a/filebrowser/run.sh b/filebrowser/run.sh index 22f13ed..8a31d4d 100644 --- a/filebrowser/run.sh +++ b/filebrowser/run.sh @@ -18,7 +18,7 @@ if [ "${DB_PATH}" != "filebrowser.db" ]; then fi # set baseurl to be able to run if sudomain=false; if subdomain=true the SERVER_BASE_PATH value will be "" -filebrowser config set --baseurl "${SERVER_BASE_PATH}" > ${LOG_PATH} 2>&1 +filebrowser config set --baseurl "${SERVER_BASE_PATH}"$${DB_FLAG} > ${LOG_PATH} 2>&1 printf "📂 Serving $${ROOT_DIR} at http://localhost:${PORT} \n\n"