Update template (fix botton)

This commit is contained in:
ChenKaiLiuG
2025-11-17 00:56:08 +08:00
parent d552987392
commit 71281756ba

View File

@@ -117,20 +117,13 @@ resource "coder_agent" "main" {
# See https://registry.coder.com/modules/coder/code-server
module "code-server" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/code-server/coder"
version = "~> 1.0"
agent_id = coder_agent.main.id
order = 1
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/code-server/coder"
version = "~> 1.0"
# 定義 subdomain讓 Coder 可以在 Dashboard 顯示 code-server 按鈕
subdomain = "code"
# code-server 會自動使用:
# - 認證:繼承 Coder 的 OIDC (GitHub) 認證
# - 自動存檔code-server 內建 auto-save
# - Extensions支援 GitHub Copilot需要 GitHub token
agent_id = coder_agent.main.id
agent_os = "linux"
folder = "/home/coder"
}
# See https://registry.coder.com/modules/coder/jetbrains