netsgnut a3ba616aec
fix(filebrowser): use updated flag for baseURL (#626)
Co-authored-by: Atif Ali <atif@coder.com>
2025-12-31 11:40:52 +00:00

1.3 KiB

display_name description icon verified tags
File Browser A file browser for your workspace ../../../../.icons/filebrowser.svg true
filebrowser
web

File Browser

A file browser for your workspace.

module "filebrowser" {
  count    = data.coder_workspace.me.start_count
  source   = "registry.coder.com/coder/filebrowser/coder"
  version  = "1.1.4"
  agent_id = coder_agent.main.id
}

Filebrowsing Example

Examples

Serve a specific directory

module "filebrowser" {
  count    = data.coder_workspace.me.start_count
  source   = "registry.coder.com/coder/filebrowser/coder"
  version  = "1.1.4"
  agent_id = coder_agent.main.id
  folder   = "/home/coder/project"
}

Specify location of filebrowser.db

module "filebrowser" {
  count         = data.coder_workspace.me.start_count
  source        = "registry.coder.com/coder/filebrowser/coder"
  version       = "1.1.4"
  agent_id      = coder_agent.main.id
  database_path = ".config/filebrowser.db"
}

Serve from the same domain (no subdomain)

module "filebrowser" {
  count      = data.coder_workspace.me.start_count
  source     = "registry.coder.com/coder/filebrowser/coder"
  version    = "1.1.4"
  agent_id   = coder_agent.main.id
  agent_name = "main"
  subdomain  = false
}