Code Server giving 404
Hello
I am trying to access the code server and it shows this error, when I have them shared to authenticated users.
Doesn anyone know how to use it?
36 Replies
<#1244288960344096922>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
is @sujalgoel your Coder user ?
no but I have the owner role
that doesn't matter in this case
in the context of app sharing "owner" refers to workspace owner
I dont have sharing owner
yeah
here in the error message it says that
share = "authenticated"
was changed to share = "owner"
because you are using path-based app sharing instead of wildcard subdomainso what should I do?
you should switch to using a wildcard subdomain if possible
any docs for that?
let me find it
Configuration - Coder Docs
Learn how to configure Coder
my sys admin says we have wildcard already
by the way, the reason for this limitation is that path-based app sharing is not safe
@junny2233
maybe on your main domain, but you also need a wildcard subdomain dedicated to Coder
e.g
coder.example.com
and *.coder.example.com
Hello,
so should it said *.coder.mydomain.com?
ahhhhh
thats the part i was missing smh
no worries
are you using a reverse-proxy in front of Coder ?
yeah
in this case then you'll have to configure your reverse-proxy to redirect requests from the wildcard subdomain to your Coder instance, just like with the regular domain
and then configure
CODER_WILDCARD_ACCESS_URL=*.coder.example.com
if we fix that issue will it also fix it for the vs code extension? Because that doesn't work as well
could you elaborate a bit on what's not working?
The connection, when I press the play button to connect to the workspace
that's something else, it should work in all cases, you should open another thread so we can figure this one out
okay!
we are using the docker version how can i use
CODER_HTTP_ADDRESS=127.0.0.1:3000
CODER_ACCESS_URL=https://coder.example.com
CODER_WILDCARD_ACCESS_URL=*.coder.example.com
??
do i use docker exec into the container or can i use docker environmental variables?
docker environment variables
ty
Did it solved the issue?
(cc: @junny2233)
Yes it works!
@Dãrķ Søŭł closed and locked the thread.