File tree 3 files changed +37
-0
lines changed 3 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -288,6 +288,43 @@ resource "coder_app" "airflow" {
288
288
289
289
![ Airflow in Coder] ( ../images/airflow-port-forward.png )
290
290
291
+ ## File Browser
292
+
293
+ Show and manipulate the contents of the ` /home/coder ` directory in a browser.
294
+
295
+ ``` hcl
296
+ resource "coder_agent" "coder" {
297
+ os = "linux"
298
+ arch = "amd64"
299
+ dir = "/home/coder"
300
+ startup_script = <<EOT
301
+ #!/bin/bash
302
+
303
+ curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash
304
+ filebrowser --noauth --root /home/coder --port 13339 >/tmp/filebrowser.log 2>&1 &
305
+
306
+ EOT
307
+ }
308
+
309
+ resource "coder_app" "filebrowser" {
310
+ agent_id = coder_agent.coder.id
311
+ display_name = "file browser"
312
+ slug = "filebrowser"
313
+ url = "http://localhost:13339"
314
+ icon = "https://raw.githubusercontent.com/matifali/logos/main/database.svg"
315
+ subdomain = true
316
+ share = "owner"
317
+
318
+ healthcheck {
319
+ url = "http://localhost:13339/healthz"
320
+ interval = 3
321
+ threshold = 10
322
+ }
323
+ }
324
+ ```
325
+
326
+ ![ File Browser] ( ../images/file-browser.png )
327
+
291
328
## SSH Fallback
292
329
293
330
If you prefer to run web IDEs in localhost, you can port forward using
You can’t perform that action at this time.
0 commit comments