mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: allow prefixes at the beginning of subdomain app hostnames (#10150)
This commit is contained in:
@@ -1417,6 +1417,10 @@ func convertApps(dbApps []database.WorkspaceApp, agent database.WorkspaceAgent,
|
||||
appSlug = dbApp.DisplayName
|
||||
}
|
||||
subdomainName = httpapi.ApplicationURL{
|
||||
// We never generate URLs with a prefix. We only allow prefixes
|
||||
// when parsing URLs from the hostname. Users that want this
|
||||
// feature can write out their own URLs.
|
||||
Prefix: "",
|
||||
AppSlugOrPort: appSlug,
|
||||
AgentName: agent.Name,
|
||||
WorkspaceName: workspace.Name,
|
||||
|
||||
Reference in New Issue
Block a user