-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathapps.tf
72 lines (66 loc) · 2.28 KB
/
apps.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# emacs
resource "coder_app" "Emacs" {
subdomain = true
share = "public"
agent_id = coder_agent.iipod.id
slug = "emacs"
display_name = "Emacs"
icon = "https://upload.wikimedia.org/wikipedia/commons/0/08/EmacsIcon.svg" # let's maybe get an emacs.svg somehow
url = "http://localhost:8085" # port 8080 + BROADWAY_DISPLAY
}
# ttyd
resource "coder_app" "left-tmux" {
subdomain = true
share = "public"
slug = "left-tmux"
display_name = "left eye/tmux"
icon = "https://cdn.icon-icons.com/icons2/2148/PNG/512/tmux_icon_131831.png"
agent_id = coder_agent.iipod.id
url = "http://localhost:7680" # 7681 is the default ttyd port, which calls 'tmux at -s $SPACENAME'
}
# ttyd
resource "coder_app" "right-tmux" {
subdomain = true
share = "public"
slug = "right-tmux"
display_name = "right eye/tmux"
icon = "https://cdn.icon-icons.com/icons2/2148/PNG/512/tmux_icon_131831.png"
agent_id = coder_agent.iipod.id
url = "http://localhost:7681" # 7681 is the default ttyd port, which calls 'tmux at -s $SPACENAME'
}
# vnc
resource "coder_app" "vnc" {
subdomain = true
share = "public"
slug = "vnc"
display_name = "vnc"
icon = "/icon/novnc.svg"
agent_id = coder_agent.iipod.id
url = "http://localhost:6080?autoconnect=true&resize=remote" # 6080 port we chose for websockify
}
# web
resource "coder_app" "web" {
subdomain = true
share = "public"
slug = "web"
display_name = "web"
# icon = "https://cdn.icon-icons.com/icons2/2148/PNG/512/tmux_icon_131831.png"
agent_id = coder_agent.iipod.id
url = "http://localhost:8000" # port 8000 is the default 'python -m http.server' port
}
resource "coder_app" "code-server" {
agent_id = coder_agent.iipod.id
slug = "code-server"
display_name = "code-server"
# url = "http://localhost:13337/?folder=/home/${local.username}"
url = "http://localhost:13337/?folder=/home/ii"
icon = "/icon/code.svg"
subdomain = true
share = "public"
# share = "owner"
healthcheck {
url = "http://localhost:13337/healthz"
interval = 5
threshold = 6
}
}