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?
No description
36 Replies
Codercord
Codercord5mo ago
<#1244288960344096922>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys5mo ago
is @sujalgoel your Coder user ?
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
no but I have the owner role
Phorcys
Phorcys5mo ago
that doesn't matter in this case
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
No description
Phorcys
Phorcys5mo ago
in the context of app sharing "owner" refers to workspace owner
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
I dont have sharing owner
Phorcys
Phorcys5mo ago
yeah
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
No description
Phorcys
Phorcys5mo ago
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 subdomain
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
so what should I do?
Phorcys
Phorcys5mo ago
you should switch to using a wildcard subdomain if possible
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
any docs for that?
Phorcys
Phorcys5mo ago
let me find it
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
my sys admin says we have wildcard already
Phorcys
Phorcys5mo ago
by the way, the reason for this limitation is that path-based app sharing is not safe
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
@junny2233
Phorcys
Phorcys5mo ago
maybe on your main domain, but you also need a wildcard subdomain dedicated to Coder e.g coder.example.com and *.coder.example.com
junny2233
junny22335mo ago
Hello, so should it said *.coder.mydomain.com? ahhhhh thats the part i was missing smh
Phorcys
Phorcys5mo ago
no worries are you using a reverse-proxy in front of Coder ?
junny2233
junny22335mo ago
yeah
Phorcys
Phorcys5mo ago
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
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
if we fix that issue will it also fix it for the vs code extension? Because that doesn't work as well
Phorcys
Phorcys5mo ago
could you elaborate a bit on what's not working?
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
The connection, when I press the play button to connect to the workspace
No description
Phorcys
Phorcys5mo ago
that's something else, it should work in all cases, you should open another thread so we can figure this one out
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
okay!
junny2233
junny22335mo ago
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?
Phorcys
Phorcys5mo ago
docker environment variables
junny2233
junny22335mo ago
ty
Atif
Atif5mo ago
Did it solved the issue?
Phorcys
Phorcys5mo ago
(cc: @junny2233)
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
No description
Dãrķ Søŭł
Dãrķ Søŭł5mo ago
Yes it works!
Codercord
Codercord5mo ago
@Dãrķ Søŭł closed and locked the thread.
Want results from more Discord servers?
Add your server