File tree Expand file tree Collapse file tree 2 files changed +47
-15
lines changed
docs/admin/templates/extending-templates Expand file tree Collapse file tree 2 files changed +47
-15
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,53 @@ and can be hidden directly in the
87
87
resource. You can arrange the display orientation of Coder apps in your template
88
88
using [ resource ordering] ( ./resource-ordering.md ) .
89
89
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
+ ## Filebrowser
110
+
111
+ ``` hcl
112
+ resource "coder_app" "filebrowser" {
113
+ agent_id = coder_agent.main.id
114
+ display_name = "file browser"
115
+ slug = "filebrowser"
116
+ url = "http://localhost:13339"
117
+ icon = "/icon/database.svg"
118
+ subdomain = true
119
+ share = "owner"
120
+ ```
121
+
122
+ ## Zed
123
+
124
+ ``` hcl
125
+ resource "coder_app" "zed" {
126
+ agent_id = coder_agent.main.id
127
+ slug = "slug"
128
+ display_name = "Zed"
129
+ external = true
130
+ url = "zed://ssh/coder.${data.coder_workspace.me.name}"
131
+ icon = "/icon/zed.svg"
132
+ }
133
+ ```
134
+
135
+ </div >
136
+
90
137
Check out our [ module registry] ( https://registry.coder.com/modules ) for
91
138
additional Coder apps from the team and our OSS community.
92
139
Original file line number Diff line number Diff line change @@ -315,21 +315,6 @@ module "airflow" {
315
315
316
316
![ Airflow in Coder] ( ../../../images/airflow-port-forward.png )
317
317
318
- ## Zed
319
-
320
- Configure your agent and ` coder_app ` like to include a Zed hotlink:
321
-
322
- ``` hcl
323
- resource "coder_app" "zed" {
324
- agent_id = coder_agent.main.id
325
- slug = "slug"
326
- display_name = "Zed"
327
- external = true
328
- url = "zed://ssh/coder.${data.coder_workspace.me.name}"
329
- icon = "/icon/zed.svg"
330
- }
331
- ```
332
-
333
318
## File Browser
334
319
335
320
To access the contents of a workspace directory in a browser, you can use File
You can’t perform that action at this time.
0 commit comments