Coder port forward giving 404
as the title says im trying to access a port that I opened on code-server (browser) but when I open it I get that 404 page not found. the template is a customized docker container, the reverse proxy I use is traefik. and all this is hosted by myself on my own machine. wildcard is setup, dns is setup (cloudflare), I have tried almost everything. I dont know if im missing something. im using the extension on vscode that is called live server.
20 Replies
<#1274167787002003548>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
hey! how did you get that URL?
I used live server then just clicked open in browser
hmm
weird
try removing the "s" after 5501?
same thing
im using a docker container. but coder server is being ran by systemd
try
curl http://localhost:5501
within the workspace
or try curl -k https://localhost:5501
if you're listening on HTTP/scurl: (35) OpenSSL/3.0.13: error:0A00010B:SSL routines::wrong version number
I get this with https
but http I get some sort of html page
yeah this makes sense
and so if you select "HTTP" end enter 5501, then press the open button it doesn't work?
nope. I notice that the s is removed
yeah the s is probably just for HTTP/s
yea makes sense.
has port-forwarding in the UI ever worked?
I still get 404 not found.
never has
oh okay
can I see your traefik configuration?
config.yml?
I will pm
sent
me and @Phorcys figured it out.
problem was regex on the traefik config.
correct way is:
[a-z0-9-].dev.domain.com
the Traefik filter did not allow connections to the wildcard subdomain
@Phorcys closed the thread.