Skip to content

Commit 19cf8c3

Browse files
committed
chore: coder_app external URL, updated images, file browser
1 parent 142401b commit 19cf8c3

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

docs/ides/web-ides.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,43 @@ resource "coder_app" "airflow" {
288288

289289
![Airflow in Coder](../images/airflow-port-forward.png)
290290

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+
291328
## SSH Fallback
292329

293330
If you prefer to run web IDEs in localhost, you can port forward using

docs/images/file-browser.png

193 KB
Loading

filebrowser.db

64 KB
Binary file not shown.

0 commit comments

Comments
 (0)