pelle
pelle
Explore posts from servers
CCoder.com
Created by pelle on 8/25/2024 in #help
Subdomain port forwarding on local ssh connection
Hello! I've setup my coder instance and it is working great! One cool feature I'm using a bunch is having coder create a custom subdomain (on *.coder.mydomain.com) that points to a port running on my environment (an API running on 3000 for example). That works great when I use either the browser text editor or the browser terminal since if I CTRL + Click on the 127.0.0.1:XXXX link on the terminal, I get sent to the custom subdomain created for that. But when I connect to my workspace via SSH locally and run a service that exposes a port, I can't get the proxied URL easily since if I click the link, I get sent to my machine's localhost. Is there a way to work around that? I've attached a video illustrating my issue. First I run a service on the online terminal and ctrl+clicking on the link gets me to the proxied url. Then I do the same for a local SSH connection and I can't get to the proxied url.
7 replies