@ -31,3 +31,13 @@ module "filebrowser" {
folder = "/home/coder/project"
}
```
### Specify location of `filebrowser.db`
```hcl
module "filebrowser" {
source = "https://registry.coder.com/modules/filebrowser"
agent_id = coder_agent.example.id
database_path = ".config/filebrowser.db"
@ -1,5 +1,5 @@
terraform {
required_version = ">= 1.3"
required_version = ">= 1.0"
required_providers {
coder = {
@ -20,7 +20,7 @@ variable "database_path" {
description = "The path to the filebrowser database."
default = "filebrowser.db"
validation {
condition = endswith(var.database_path, "filebrowser.db")
condition = can(regex(".*filebrowser\\.db$", var.database_path))
error_message = "The database_path must end with 'filebrowser.db'."