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.
From An unknown user
From An unknown user
No description
22 Replies
Codercord
Codercord3d ago
<#1336031149239042088>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
GuikiPT
GuikiPTOP3d ago
My CoderV2 version:
Coder v2.18.4+6125358 Thu Jan 23 20:23:12 UTC 2025
https://github.com/coder/coder/commit/6125358569071babaf36a7d4ff976429387df8da
Coder v2.18.4+6125358 Thu Jan 23 20:23:12 UTC 2025
https://github.com/coder/coder/commit/6125358569071babaf36a7d4ff976429387df8da
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 - session
Phorcys
Phorcysthis hour
hey, are you using a reverse-proxy in front of Coder?
GuikiPT
GuikiPTOPthis hour
yes nginx lemme just grab the config I have over the nginx
Phorcys
Phorcysthis hour
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
GuikiPT
GuikiPTOPthis hour
:Thumbglass: but
GuikiPT
GuikiPTOPthis hour
AH ok
No description
GuikiPT
GuikiPTOPthis hour
it was that since the docs pointed around an yaml file I was quit not understanding since I was not finding the file
Phorcys
Phorcysthis hour
the YAML file is also supported
GuikiPT
GuikiPTOPthis hour
but these should work asw
Phorcys
Phorcysthis hour
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
GuikiPT
GuikiPTOPthis hour
yah these I know, i was just most having trouble locating the file
No description
GuikiPT
GuikiPTOPthis hour
well lemme do these rn
Phorcys
Phorcysthis hour
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
GuikiPT
GuikiPTOPthis hour
When searched around internet people was poiting around the yaml file located around ~/.config/coderv2
No description
GuikiPT
GuikiPTOPthis hour
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
GuikiPT
GuikiPTOPthis hour
yeah
No description
GuikiPT
GuikiPTOPthis hour
well here we go
No description
GuikiPT
GuikiPTOPthis hour
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:
GuikiPT
GuikiPTOPthis hour
theres kinda stuff that well, problems, but these is at my domain/certs related, the main problem I have already resolved
No description
Phorcys
Phorcys23h ago
@GuikiPT glad you got it figured out, i'll mark this as "improvement-needed" to see how we can clarify this.
Codercord
Codercord23h ago
@Phorcys closed the thread.

Did you find this page helpful?