From 2f6682a46f121874fa103ca31e937cf32bdaf94f Mon Sep 17 00:00:00 2001 From: Edward Angert Date: Mon, 7 Apr 2025 14:00:43 -0400 Subject: [PATCH] docs: add zed code_app to extending-templates doc (#17281) continuation of #17236 (thanks @sharkymark ) adds zed as a coder_app to [preview](https://coder.com/docs/@17236-zed-app/admin/templates/extending-templates#coder-app-examples) --------- Co-authored-by: sharkymark Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com> --- .../templates/extending-templates/index.md | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/docs/admin/templates/extending-templates/index.md b/docs/admin/templates/extending-templates/index.md index c27c1da709..2e274e11ef 100644 --- a/docs/admin/templates/extending-templates/index.md +++ b/docs/admin/templates/extending-templates/index.md @@ -87,6 +87,55 @@ and can be hidden directly in the resource. You can arrange the display orientation of Coder apps in your template using [resource ordering](./resource-ordering.md). +### Coder app examples + +
+ +You can use these examples to add new Coder apps: + +## code-server + +```hcl +resource "coder_app" "code-server" { + agent_id = coder_agent.main.id + slug = "code-server" + display_name = "code-server" + url = "http://localhost:13337/?folder=/home/${local.username}" + icon = "/icon/code.svg" + subdomain = false + share = "owner" +} +``` + +## Filebrowser + +```hcl +resource "coder_app" "filebrowser" { + agent_id = coder_agent.main.id + display_name = "file browser" + slug = "filebrowser" + url = "http://localhost:13339" + icon = "/icon/database.svg" + subdomain = true + share = "owner" +} +``` + +## Zed + +```hcl +resource "coder_app" "zed" { + agent_id = coder_agent.main.id + slug = "slug" + display_name = "Zed" + external = true + url = "zed://ssh/coder.${data.coder_workspace.me.name}" + icon = "/icon/zed.svg" +} +``` + +
+ Check out our [module registry](https://registry.coder.com/modules) for additional Coder apps from the team and our OSS community.