File tree Expand file tree Collapse file tree 4 files changed +14
-13
lines changed
registry/coder/modules/filebrowser Expand file tree Collapse file tree 4 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ A file browser for your workspace.
15
15
module "filebrowser" {
16
16
count = data.coder_workspace.me.start_count
17
17
source = "registry.coder.com/coder/filebrowser/coder"
18
- version = "1.1.0 "
18
+ version = "1.1.1 "
19
19
agent_id = coder_agent.example.id
20
20
}
21
21
```
@@ -30,7 +30,7 @@ module "filebrowser" {
30
30
module "filebrowser" {
31
31
count = data.coder_workspace.me.start_count
32
32
source = "registry.coder.com/coder/filebrowser/coder"
33
- version = "1.1.0 "
33
+ version = "1.1.1 "
34
34
agent_id = coder_agent.example.id
35
35
folder = "/home/coder/project"
36
36
}
@@ -42,7 +42,7 @@ module "filebrowser" {
42
42
module "filebrowser" {
43
43
count = data.coder_workspace.me.start_count
44
44
source = "registry.coder.com/coder/filebrowser/coder"
45
- version = "1.1.0 "
45
+ version = "1.1.1 "
46
46
agent_id = coder_agent.example.id
47
47
database_path = ".config/filebrowser.db"
48
48
}
@@ -54,7 +54,7 @@ module "filebrowser" {
54
54
module "filebrowser" {
55
55
count = data.coder_workspace.me.start_count
56
56
source = "registry.coder.com/coder/filebrowser/coder"
57
- version = "1.1.0 "
57
+ version = "1.1.1 "
58
58
agent_id = coder_agent.example.id
59
59
agent_name = "main"
60
60
subdomain = false
Original file line number Diff line number Diff line change @@ -55,36 +55,37 @@ describe("filebrowser", async () => {
55
55
) ;
56
56
57
57
testBaseLine ( output ) ;
58
- } ) ;
58
+ } , 15000 ) ;
59
59
60
60
it ( "runs with database_path var" , async ( ) => {
61
61
const state = await runTerraformApply ( import . meta. dir , {
62
62
agent_id : "foo" ,
63
63
database_path : ".config/filebrowser.db" ,
64
64
} ) ;
65
65
66
- const output = await await executeScriptInContainer (
66
+ const output = await executeScriptInContainer (
67
67
state ,
68
68
"alpine/curl" ,
69
69
"sh" ,
70
70
"apk add bash" ,
71
71
) ;
72
72
73
73
testBaseLine ( output ) ;
74
- } ) ;
74
+ } , 15000 ) ;
75
75
76
76
it ( "runs with folder var" , async ( ) => {
77
77
const state = await runTerraformApply ( import . meta. dir , {
78
78
agent_id : "foo" ,
79
79
folder : "/home/coder/project" ,
80
80
} ) ;
81
- const output = await await executeScriptInContainer (
81
+ const output = await executeScriptInContainer (
82
82
state ,
83
83
"alpine/curl" ,
84
84
"sh" ,
85
85
"apk add bash" ,
86
86
) ;
87
- } ) ;
87
+
88
+ } , 15000 ) ;
88
89
89
90
it ( "runs with subdomain=false" , async ( ) => {
90
91
const state = await runTerraformApply ( import . meta. dir , {
@@ -93,13 +94,13 @@ describe("filebrowser", async () => {
93
94
subdomain : false ,
94
95
} ) ;
95
96
96
- const output = await await executeScriptInContainer (
97
+ const output = await executeScriptInContainer (
97
98
state ,
98
99
"alpine/curl" ,
99
100
"sh" ,
100
101
"apk add bash" ,
101
102
) ;
102
103
103
104
testBaseLine ( output ) ;
104
- } ) ;
105
+ } , 15000 ) ;
105
106
} ) ;
Original file line number Diff line number Diff line change @@ -97,7 +97,6 @@ resource "coder_script" "filebrowser" {
97
97
LOG_PATH : var.log_path,
98
98
PORT : var.port,
99
99
FOLDER : var.folder,
100
- LOG_PATH : var.log_path,
101
100
DB_PATH : var.database_path,
102
101
SUBDOMAIN : var.subdomain,
103
102
SERVER_BASE_PATH : local.server_base_path
@@ -128,3 +127,4 @@ locals {
128
127
url = " http://localhost:${ var . port } ${ local . server_base_path } "
129
128
healthcheck_url = " http://localhost:${ var . port } ${ local . server_base_path } /health"
130
129
}
130
+
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export FB_DATABASE="${DB_PATH}"
25
25
# Check if filebrowser db exists
26
26
if [[ ! -f " ${DB_PATH} " ]]; then
27
27
filebrowser config init 2>&1 | tee -a ${LOG_PATH}
28
- filebrowser users add admin " " --perm.admin=true --viewMode=mosaic 2>&1 | tee -a ${LOG_PATH}
28
+ filebrowser users add admin " coderPASSWORD " --perm.admin=true --viewMode=mosaic 2>&1 | tee -a ${LOG_PATH}
29
29
fi
30
30
31
31
filebrowser config set --baseurl=${SERVER_BASE_PATH} --port=${PORT} --auth.method=noauth --root=$ROOT_DIR 2>&1 | tee -a ${LOG_PATH}
You can’t perform that action at this time.
0 commit comments