sterling
sterling
CCoder.com
Created by sterling on 8/31/2022 in #help
Coder OSS - code-server certificate issue
Thanks, was wondering how to do that
19 replies
CCoder.com
Created by sterling on 8/31/2022 in #help
Coder OSS - code-server certificate issue
truly, this is a brilliant platform. I've really enjoyed diving in. thanks to all the great work from the coder team, and for the correction @Phorcys
19 replies
CCoder.com
Created by sterling on 8/31/2022 in #help
Coder OSS - code-server certificate issue
thanks a ton for your help!
19 replies
CCoder.com
Created by sterling on 8/31/2022 in #help
Coder OSS - code-server certificate issue
ugh, so it looks like the issue is that I was trying to bind to https when coder service was expecting the reach-back on 8080? anyway, with the patch I made to update the trusted root store it works!!
19 replies
CCoder.com
Created by sterling on 8/31/2022 in #help
Coder OSS - code-server certificate issue
thanks for the help! I'm still trying to understand the architecture here, but that makes sense. let me give that a try.
19 replies
CCoder.com
Created by sterling on 8/31/2022 in #help
Coder OSS - code-server certificate issue
~from docker-code-server/main.tf
19 replies
CCoder.com
Created by sterling on 8/31/2022 in #help
Coder OSS - code-server certificate issue
Is this what you mean?
resource "coder_agent" "main" {
arch = data.coder_provisioner.me.arch
os = "linux"
startup_script = "code-server -vvv --auth none --bind-addr 0.0.0.0:443 --cert /home/coder/cert/coder.mydomain.tld.crt --cert-key /home/coder/cert/service.key"

# These environment variables allow you to make Git commits right away after creating a
# workspace. Note that they take precedence over configuration defined in ~/.gitconfig!
# You can remove this block if you'd prefer to configure Git manually or using
# dotfiles. (see docs/dotfiles.md)
env = {
GIT_AUTHOR_NAME = "${data.coder_workspace.me.owner}"
GIT_COMMITTER_NAME = "${data.coder_workspace.me.owner}"
GIT_AUTHOR_EMAIL = "${data.coder_workspace.me.owner_email}"
GIT_COMMITTER_EMAIL = "${data.coder_workspace.me.owner_email}"
}
}

resource "coder_app" "code-server" {
agent_id = coder_agent.main.id
url = "https://coder.mydomain.tld:443/?folder=/home/coder"
icon = "/icon/code.svg"
}
resource "coder_agent" "main" {
arch = data.coder_provisioner.me.arch
os = "linux"
startup_script = "code-server -vvv --auth none --bind-addr 0.0.0.0:443 --cert /home/coder/cert/coder.mydomain.tld.crt --cert-key /home/coder/cert/service.key"

# These environment variables allow you to make Git commits right away after creating a
# workspace. Note that they take precedence over configuration defined in ~/.gitconfig!
# You can remove this block if you'd prefer to configure Git manually or using
# dotfiles. (see docs/dotfiles.md)
env = {
GIT_AUTHOR_NAME = "${data.coder_workspace.me.owner}"
GIT_COMMITTER_NAME = "${data.coder_workspace.me.owner}"
GIT_AUTHOR_EMAIL = "${data.coder_workspace.me.owner_email}"
GIT_COMMITTER_EMAIL = "${data.coder_workspace.me.owner_email}"
}
}

resource "coder_app" "code-server" {
agent_id = coder_agent.main.id
url = "https://coder.mydomain.tld:443/?folder=/home/coder"
icon = "/icon/code.svg"
}
19 replies