Allow custom display name and slug for VS Code Web (#146)
This commit is contained in:
@@ -20,6 +20,18 @@ variable "port" {
|
|||||||
default = 13338
|
default = 13338
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "display_name" {
|
||||||
|
type = string
|
||||||
|
description = "The display name for the VS Code Web application."
|
||||||
|
default = "VS Code Web"
|
||||||
|
}
|
||||||
|
|
||||||
|
variable "slug" {
|
||||||
|
type = string
|
||||||
|
description = "The slug for the VS Code Web application."
|
||||||
|
default = "vscode-web"
|
||||||
|
}
|
||||||
|
|
||||||
variable "folder" {
|
variable "folder" {
|
||||||
type = string
|
type = string
|
||||||
description = "The folder to open in vscode-web."
|
description = "The folder to open in vscode-web."
|
||||||
@@ -71,8 +83,8 @@ resource "coder_script" "vscode-web" {
|
|||||||
|
|
||||||
resource "coder_app" "vscode-web" {
|
resource "coder_app" "vscode-web" {
|
||||||
agent_id = var.agent_id
|
agent_id = var.agent_id
|
||||||
slug = "vscode-web"
|
slug = var.slug
|
||||||
display_name = "VS Code Web"
|
display_name = var.display_name
|
||||||
url = var.folder == "" ? "http://localhost:${var.port}" : "http://localhost:${var.port}?folder=${var.folder}"
|
url = var.folder == "" ? "http://localhost:${var.port}" : "http://localhost:${var.port}?folder=${var.folder}"
|
||||||
icon = "/icon/code.svg"
|
icon = "/icon/code.svg"
|
||||||
subdomain = true
|
subdomain = true
|
||||||
|
|||||||
Reference in New Issue
Block a user