Supporting Code-Server Port Forwards from Coder

Is this something that currently works and I just haven't set it up right? I am connecting through a coder instance running on my VPS, so localhost is not correct. https://files.mcaq.me/30578.jpg
12 Replies
Sharp
Sharp2y ago
If this feature is not currently working, then is there another method to expose services running on the workspace?
kyle
kyle2y ago
Hmm, this should only work if you have a wildcard domain setup for forwarding ports.
Sharp
Sharp2y ago
Okay cool, I can get that setup. Will it be automatic when I have that option set? Right now I own mcaq.me, and run coder on vs.compute.mcaq.me If I add a CNAME so that I have *.vs.compute.mcaq.me point to coder, then set the wildcard domain up in the helm chart, it should work? I'm also planning on making a ticket / PR to add more info to the helm docs - If that's useful to you guys
kyle
kyle2y ago
It should work! That would be helpful to us. Users can give a less biased perspective on our docs than we have, so the contributions are welcome!
Sharp
Sharp2y ago
Cool! I'm trying to push your software at work, and also trying to move my hobbyist stuff onto it. We'll see how that goes - but for now it's going really well, few kinks to work out, as well as k3s being painful with sysbox, but that's expected at this level Hey @kyle , sorry I forgot I made this thread. Basically, adding wildcardhost didn't help, its still saying localhost
kyle
kyle2y ago
You'll have to add an environment variable to set the wildcard host too! See: https://github.com/coder/coder/issues/5563 We'll be fixing this soonish!
GitHub
CODER_WILDCARD_ACCESS_URL is not set when `coder.ingress.wildcard...
If you set coder.ingress.wildcardHost=... in the Helm chart, I would expect that the Coder pod will have the corresponding configuration for CODER_WILDCARD_ACCESS_URL, but it doesn't get that.
Sharp
Sharp2y ago
Ah okay sweet. Thanks :))
Sharp
Sharp2y ago
@kyle this doesn't seem to be working https://files.mcaq.me/2r4ck.jpg
Sharp
Sharp2y ago
And I run
helm repo update
helm upgrade coder coder-v2/coder \
--namespace coder \
-f values.yaml
helm repo update
helm upgrade coder coder-v2/coder \
--namespace coder \
-f values.yaml
Got it - I needed to remove the https:// - maybe worth removing the URL part of that env var to make it clearer its a domain not a URL?
Want results from more Discord servers?
Add your server