Skip to content
\n

But I cannot find in docs or figure out what value is used for the abc123 hash part in abc123-code-server.

\n

Is there a variable that can be used here or exposed through the terraform template? Or maybe there is a better way to get the path for absProxyBasePath?

\n

It seems to be persistent across multiple workspaces and only changed when I used a different repository as base.

\n

Any help will be greatly appreciated!

\n

For context this is my devcontainer.json:

\n
{\n  \"name\": \"Devcontainer\",\n  \"image\": \"node:24-bookworm-slim\",\n  \"workspaceFolder\": \"/workspaces/${localWorkspaceFolderBasename}\",\n  \"features\": {\n    \"ghcr.io/coder/devcontainer-features/code-server:1\": {\n      \"port\": 13337,\n      \"host\": \"0.0.0.0\",\n      \"disableTelemetry\": true,\n      \"disableUpdateCheck\": true,\n      \"disableFileUploads\": true,\n      \"disableFileDownloads\": true,\n      \"workspace\": \"/workspaces/${localWorkspaceFolderBasename}\",\n      \"absProxyBasePath\": \"/@${localEnv:CODER_WORKSPACE_OWNER_NAME}/${localEnv:CODER_WORKSPACE_NAME}.${localWorkspaceFolderBasename}/apps/edfpe135-code-server\",\n      \"auth\": \"none\",\n      \"appName\": \"AppName\",\n    }\n  },\n  \"containerEnv\": {\n    \"CODER_AGENT_URL\": \"${localEnv:CODER_AGENT_URL}\",\n    \"CODER_WORKSPACE_AGENT_NAME\": \"${localEnv:CODER_WORKSPACE_AGENT_NAME}\",\n    \"CODER_WORKSPACE_FOLDER_NAME\": \"${localWorkspaceFolderBasename}\",\n    \"CODER_WORKSPACE_NAME\": \"${localEnv:CODER_WORKSPACE_NAME}\",\n    \"CODER_WORKSPACE_OWNER_NAME\": \"${localEnv:CODER_WORKSPACE_OWNER_NAME}\",\n    \"CODER_AGENT_ID\": \"${localEnv:CODER_AGENT_ID}\",\n    \"RUNNING_IN_CONTAINER\": \"true\",\n    \"VSCODE_PROXY_URI\": \"${localEnv:VSCODE_PROXY_URI}\",\n    \"DEVCONTAINER_ID\": \"${devcontainerId}\"\n  }\n}
","upvoteCount":1,"answerCount":3,"acceptedAnswer":{"@type":"Answer","text":"

I should also add it is possible to ensure a stable subAgent.Name by providing a name in the devcontainer.json via customizations:

\n
{\n  \"customizations\": {\n    \"coder\": {\n      \"name\": \"<name-here>\"\n    }\n  }\n}\n
","upvoteCount":2,"url":"https://github.com/coder/coder/discussions/21227#discussioncomment-15232836"}}}
Discussion options

You must be logged in to vote

I should also add it is possible to ensure a stable subAgent.Name by providing a name in the devcontainer.json via customizations:

{
  "customizations": {
    "coder": {
      "name": "<name-here>"
    }
  }
}

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@mafredri
Comment options

@DanielleMaywood
Comment options

@mafredri
Comment options

Comment options

You must be logged in to vote
1 reply
@matifali
Comment options

Answer selected by Buk1m
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants