Thanks to visit codestin.com
Credit goes to github.com

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

Commit 20d97a2

Browse files
yandolfatmatifali
andauthored
fix(filebrowser): support custom base_url in case of custom db path (#320)
Co-authored-by: Muhammad Atif Ali <[email protected]> Co-authored-by: Muhammad Atif Ali <[email protected]>
1 parent 8e0dfcd commit 20d97a2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

filebrowser/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ A file browser for your workspace.
1414
```tf
1515
module "filebrowser" {
1616
source = "registry.coder.com/modules/filebrowser/coder"
17-
version = "1.0.19"
17+
version = "1.0.22"
1818
agent_id = coder_agent.example.id
1919
}
2020
```
@@ -28,7 +28,7 @@ module "filebrowser" {
2828
```tf
2929
module "filebrowser" {
3030
source = "registry.coder.com/modules/filebrowser/coder"
31-
version = "1.0.19"
31+
version = "1.0.22"
3232
agent_id = coder_agent.example.id
3333
folder = "/home/coder/project"
3434
}
@@ -39,7 +39,7 @@ module "filebrowser" {
3939
```tf
4040
module "filebrowser" {
4141
source = "registry.coder.com/modules/filebrowser/coder"
42-
version = "1.0.19"
42+
version = "1.0.22"
4343
agent_id = coder_agent.example.id
4444
database_path = ".config/filebrowser.db"
4545
}

filebrowser/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if [ "${DB_PATH}" != "filebrowser.db" ]; then
1818
fi
1919

2020
# set baseurl to be able to run if sudomain=false; if subdomain=true the SERVER_BASE_PATH value will be ""
21-
filebrowser config set --baseurl "${SERVER_BASE_PATH}" > ${LOG_PATH} 2>&1
21+
filebrowser config set --baseurl "${SERVER_BASE_PATH}"$${DB_FLAG} > ${LOG_PATH} 2>&1
2222

2323
printf "📂 Serving $${ROOT_DIR} at http://localhost:${PORT} \n\n"
2424

0 commit comments

Comments
 (0)