Access Coder Locally
I am trying to run Coder behind a school firewall.
I am trying the —access-url flag, and set it to the same IP address as the box it is running on.
It seemingly starts fine, but I can not access it when I go to the local URL.
How do you change the “HTTP Listener”, since it is still pointing to 127.0.0.1?
...
deploy coder_agent with for_each loop
hi there, i'm trying to deploy coder_agent with a for_each loop, but when it's deploying i receive this error "duplicate agent name", but is not any "name" parameter at resource "coder_agent", any idea to fix this? kind regards!
`resource "coder_agent" "platform" {
for_each = local.enabled_platform
os = "linux"...
Angular and Coder
Greetings,
I have coder v2 deployed on a docker container in on-premises server.
Everything works but when I run the angular application none of the angular scripts are loaded and I get : Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
The baseref is ./.
I tried looking online but can't really find anything on how to configure angular to work on coder. Interestingly the same project works fine on the linuxserver coder implementation....
Dev URLs configuration
Hey Team, I am new to coder environment and I was exploring this feature called Dev URls. One of the use-cases in our org is to give developers capability to launch their workspaces (which has both BE and FE integrated) and available on a public accessible URL instead of port forwarding. Is this something which we can achieve by dev URLs ? If yes, how is the experience ? Will I get a URL by default anytime I launch a new workspace or do i need to do infra changes for every workspace i launch ?
I went through this documentation but not very clear
https://s.cdr.dev/docs/admin/devurls/
...
Create template by zip upload hangs
Hi, any idea why create template by upload doesn't work and loops in the loading state? Thanks
State management, external backend?
Hi everyone, how does coder manage the terraform state of its workspaces? Is it stored in the Postgres database? Is there any option of them being stored externally, such as S3?
How to push templates to Kubernetes Coder from GitLab CI/CD?
Hi all,
I am trying to push my Terraform templates to my self-hosted Coder running in Kuberentes. I followed this guide: https://coder.com/docs/admin/templates/managing-templates/change-management#coder-cli
This is the error I am getting:...
Where can I find settings.json for vscode web?
I use the docker template and use the VS Code Web (https://registry.coder.com/modules/vscode-web) module.
I looked up the historical posts and they said settings.json is located at
~/.local/share/code-server/User/settings.json
, but I found that the ~/.local/share/code-server/User/
folder was not created, and even if I used the instructions to create and write settings.json, vscode's settings did not change.
When I manually opened vscode's settings file and copied its absolute path, it returned (Settings) /User/settings.json
....Restrict access for Gitlab Auth
Hi community, how can I restrict the access based on Gitlab authentication? I have created the Gitlab app on a group like
foo/bar/coder
, can I restrict the access to members of the coder
group only? Currently anybody authenticated to Gitlab is able to sign into Coder.Solution:
Found the solution on my own by try and error. I got to assign the env variables CODER_OIDC_GROUP_FIELD=groups and CODER_OIDC_ALLOWED_GROUPS=foo/bar/coder to get it working as expected.
AWS: Can't make searching among custom (private) AMIs work
Hi team!
I am building coder workspaces in my AWS account based on EC2 virtual machines.
I have built a custom AMI (thanks to EC2 Image Builder).
Now I want to use it in a Coder template.
...
Envbuilder in Coder: wrong user is used when cache is enabled
Hello, when I build image for the first time, the correct user, specified in
.devcontainer
is used. But when the pod is restarted and image is pulled from cache, it ALWAYS uses root
user which then fails, because only the specified user has private SSH key in their .ssh
which can pull from remote repository. This happens regardless of ENVBUILDER_REMOTE_REPO_BUILD_MODE
set to true
or false
.
devcontainer:
```json
{...VS Code Desktop, remove button
When creating a template, I would like to remove the “VS Code Desktop” button as an option. I would like a template that only has “terminal” available, to force my students into using it.
Thanks...
Solution:
inside the template's
coder_agent
resource, add a display_apps
config to force removing the desktop option.
```
display_apps {
vscode = false...web terminal font, want to change
I have just created a fresh Debian 12 instance and loaded Coder on it. Then created a standard “docker” template and opened it up in the provided web terminal. The font that is being used is “DejaVu Sans”. How do I change the web terminal to use a different font; I want to use a Nerd Font.
Thanks...
ENVBUILDER_CACHE_REPO is always empty
Hi, I'm not sure what I'm doing wrong but
ENVBUILDER_CACHE_REPO
always remains empty in the env of the pod, even after multiple restarts. Here are some snippets of my config. LMK if you need more of my configuration and I will provide. I'm using latest versions of coder/coder
, hashicorp/kubernetes
and coder/envbuilder
providers. Envbuilder image is on 1.0.3
. Thanks in advance guys 🙂 Otherwise, it works perfectly
```json
locals {
...
envbuilder_env = {...Clicking 'Restart' on Unhealthy Coder Agent Stops Workspace Instead of Restarting
When the 'Restart' button is clicked while the Coder agent is marked as unhealthy, the workspace is stopped instead of restarting as expected.
Can't delete a workspace which uses devcontainers
I created a new workspace using Docker DevContainers, but I'm unable to delete the workspace. It's throwing an error that says:
Error: Unable to remove Docker image: Error response from daemon: conflict: unable to remove repository reference "ghcr.io/coder/envbuilder:latest" (must force) - container d5711f770661 is using its referenced image 6d1d6302ce48.
...Virtual Keyboard opens all the time
Hello Everyone !
I installed code-server on one of my machines to work remotely on my tablet. So far everything works, except when i am on code-server (tablet-side) on Google Chrome. As soon as i click on a button (eg : open the File Explorer) or when i slide to go down my code, it opens my tablet keyboard, wich become quickly unpleasant.
Has anyone already had this problem ? And solved it ?...
I am trying to setup Git Auth with Coder Envbuilder
I'm trying to set up GitHub authentication with Coder's Envbuilder, but I'm a bit lost when it comes to configuring Terraform.
Here's what I've done so far:
I briefly looked at the
I briefly looked at the
.tf
file and placed the coder_external_auth
block below the coder_workspace_owner
.
...