- Notifications
You must be signed in to change notification settings - Fork928
Closed
Description
Problem Statement
resource"coder_app""code-server" {agent_id=coder_agent.main.idurl="http://localhost:8080/?folder=/home/coder"icon="/icon/code.svg"}
And then is accessed at a URL likehttps://dev.coder.com/@ammario/moria/apps/code-server
.
While many web applications can be configured to serve at specific paths instead of root,it's not always obvious, possible, or convenient.
In these cases, an organization may prefer setting up a wildcard domain so their users can use apps at/
. We should add this setting incoderd
since it would likely be configured alongside the main access URL. A coder admin could set it tocdr.app
and then requests for{agent_id}-{app_name}.cdr.app
could forward to a particular app.
Definition of done
Users can accesscoder_app
via a subdomain instead of a path
example schema:
resource "coder_app" "code-server" { agent_id = coder_agent.main.id url = "http://localhost:8080/?folder=/home/coder" icon = "/icon/code.svg"+ relative = true}- # url is https://coder.example.com/@workspace/app+ # url is https://workspace-app.coder.example.com/