chore: add subdomain option to terraform module

pull/288/head
Steven Masley 11 months ago
parent 4c45d69994
commit 06d2573aef
No known key found for this signature in database

@ -121,6 +121,15 @@ variable "auto_install_extensions" {
default = false default = false
} }
variable "subdomain" {
type = bool
description = <<-EOT
Determines whether the app will be accessed via it's own subdomain or whether it will be accessed via a path on Coder.
If wildcards have not been setup by the administrator then apps with "subdomain" set to true will not be accessible.
EOT
default = true
}
resource "coder_script" "vscode-web" { resource "coder_script" "vscode-web" {
agent_id = var.agent_id agent_id = var.agent_id
display_name = "VS Code Web" display_name = "VS Code Web"
@ -160,7 +169,7 @@ resource "coder_app" "vscode-web" {
display_name = var.display_name 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 = var.subdomain
share = var.share share = var.share
order = var.order order = var.order

Loading…
Cancel
Save