Closed link-webcreations closed 1 month ago
@matifali it seems it's a genuine bug. I'm experiencing the same symptom :)
Thank you, @jeehoonkang. I think #320 will fix this.
Hi @jeehoonkang Could you test the updated module using
module "filebrowser" {
source = "git::https://github.com/yandolfat/modules.git//filebrowser?ref=patches/filebrowser"
agent_id = coder_agent.example.id
agent_name = "main"
subdomain = false
database_path = ".config/filebrowser.db"
}
Let me know if that works and I will merge the PR and cut a new release.
Base URL Configuration Issue in FileBrowser Module
Problem Description
There's an issue in the FileBrowser module version
1.0.19
, specifically in the filebrowser/run.sh#L21 script. The script attempts to customize the server Base URL before starting the server in the background. However, this customization only works when the database is located at the default path,~/filebrowser.db
.If the database location has been modified (e.g.:
database_path = "/home/coder/.filebrowser/filebrowser.db"
), the script tries to update the default database location, resulting in no changes. Consequently, theBase URL
remains empty.Current Behavior
This line only works correctly with the default database location.
Proposed Solution
To address this issue, we can leverage the existing mechanism used for starting the server. Here's the proposed change:
This modification could ensures that the Base URL is correctly set regardless of the database location (to be tested).