File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed
docs/admin/templates/extending-templates Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,55 @@ and can be hidden directly in the
8787resource. You can arrange the display orientation of Coder apps in your template
8888using [ resource ordering] ( ./resource-ordering.md ) .
8989
90+ ### Coder app examples
91+
92+ <div class =" tabs " >
93+
94+ You can use these examples to add new Coder apps:
95+
96+ ## code-server
97+
98+ ``` hcl
99+ resource "coder_app" "code-server" {
100+ agent_id = coder_agent.main.id
101+ slug = "code-server"
102+ display_name = "code-server"
103+ url = "http://localhost:13337/?folder=/home/${local.username}"
104+ icon = "/icon/code.svg"
105+ subdomain = false
106+ share = "owner"
107+ }
108+ ```
109+
110+ ## Filebrowser
111+
112+ ``` hcl
113+ resource "coder_app" "filebrowser" {
114+ agent_id = coder_agent.main.id
115+ display_name = "file browser"
116+ slug = "filebrowser"
117+ url = "http://localhost:13339"
118+ icon = "/icon/database.svg"
119+ subdomain = true
120+ share = "owner"
121+ }
122+ ```
123+
124+ ## Zed
125+
126+ ``` hcl
127+ resource "coder_app" "zed" {
128+ agent_id = coder_agent.main.id
129+ slug = "slug"
130+ display_name = "Zed"
131+ external = true
132+ url = "zed://ssh/coder.${data.coder_workspace.me.name}"
133+ icon = "/icon/zed.svg"
134+ }
135+ ```
136+
137+ </div >
138+
90139Check out our [ module registry] ( https://registry.coder.com/modules ) for
91140additional Coder apps from the team and our OSS community.
92141
You can’t perform that action at this time.
0 commit comments