Coder.comC
Coder.com4y ago
4 replies
Mr_Neezer

Custom button, like the code-server one?

I setup a resource block like I saw in some of the example Coder templates for a different service running in my workspace, Tilt:

resource "coder_app" "tilt" {
  agent_id      = coder_agent.main.id
  name          = "tilt"
  icon          = "https://yt3.ggpht.com/ytc/AMLnZu_KBLJd3vBogFZfah1GLQHiB3LQmjL9t4ZKyVpR=s68-c-k-c0x00ffffff-no-rj"
  url           = "http://localhost:10350"
  subdomain     = false

  healthcheck {
    url       = "http://localhost:10350"
    interval  = 3
    threshold = 10
  }
}


The button shows up on my workspace dashboard in Coder, and seems to accurately reflect the status (yay!).

But trying to navigate to it and all my assets are broken; I think because they are relative to the root /asset/path and not relative ./asset/path.

I saw https://github.com/coder/coder/pull/4263 was recently pushed, but I don't understand how this helps with relative_path going away... or is that not related?

I tried changing subdomain = true but that made no discernible difference.

Confused.
GitHub
Adds subdomain to the WorkspaceApp struct.
Changes the dashboard to use subdomain app access if subdomain is true and an app hostname is set.
Add a tooltip explaining why the app button is greyed o...
feat: use app wildcards for apps if configured by deansheather · Pu...
Was this page helpful?