How to modify an current coder running instance to accept domain wildcards?
So hello, I was modifying some of my templates to include the modules that coder have, like "File Explorer" and "Jupyter" but after updating then I cannot click into the app button.
I did some research around what would be the problem and I did find out that I need to have a parameter for wildcards into the running coder server. (https://coder.com/docs/admin/setup#wildcard-access-url)
I'm not findind the way to update a current running coder server to have these paramters without losing data.
Setup | Coder Docs
Configure user access to your control plane.
22 Replies
<#1336031149239042088>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
My CoderV2 version:
Installed thought CLI in the host of the vps.
I'm only not finding the way to modify the current instance to allow it to use wildcards.
I have tried to look around
/home/<user>/.config/coderv2
but in that folder only have these 2 files:
- url
- sessionhey, are you using a reverse-proxy in front of Coder?
yes
nginx
lemme just grab the config I have over the nginx
alright, so what you'll want to do is configure a virtual host (i.e
server
block) in nginx so that *.coder.domain.tld
on your instance reverse proxies to Coder
after this, you can configure the CODER_WILDCARD_ACCESS_URL
environment variable through /etc/coder.d/coder.env
:Thumbglass:
but
AH ok
it was that
since the docs pointed around an yaml file
I was quit not understanding since I was not finding the file
the YAML file is also supported
but these should work asw
see https://coder.com/docs/reference/cli/server#--wildcard-access-url
we support the YAML file, environment variables (or the env file) and CLI arguments for each param
yah these I know, i was just most having trouble locating the file
well lemme do these rn
do you think it could be made clearer? and where do you think we should make this info available?
it seems that Discord is currently having an outage, sorry if my replies are delayed
When searched around internet people was poiting around the yaml file located around ~/.config/coderv2
Well it likes, it was kinda confusing
since people (I have associated asw) coder server with coder
they are different things but by what people explain the name is the same
and the docs when search points to coder server and not the "coder workspacing server"
docs may exist, should be there somewhere, but finding it was my problem
np, hapens
yeah
well here we go
also I had problems associated with cloudflare certs, but these is because they not coverage wildcard subdomains in free premium, but the docs teach around certbot, so for these particularry case I ended using certbot
@Phorcys well thx for the help, must apreciated
:prayadge:
theres kinda stuff that well, problems, but these is at my domain/certs related, the main problem I have already resolved
@GuikiPT glad you got it figured out, i'll mark this as "improvement-needed" to see how we can clarify this.
@Phorcys closed the thread.