Add slug to code server (#161)

pull/166/head
Florian Gareis 1 year ago committed by GitHub
parent d66d7e994e
commit c00b7536cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -32,6 +32,12 @@ variable "display_name" {
default = "code-server"
}
variable "slug" {
type = string
description = "The slug for the code-server application."
default = "code-server"
}
variable "settings" {
type = map(string)
description = "A map of settings to apply to code-server."
@ -89,7 +95,7 @@ resource "coder_script" "code-server" {
resource "coder_app" "code-server" {
agent_id = var.agent_id
slug = "code-server"
slug = var.slug
display_name = var.display_name
url = "http://localhost:${var.port}/${var.folder != "" ? "?folder=${urlencode(var.folder)}" : ""}"
icon = "/icon/code.svg"

Loading…
Cancel
Save