pelle
Explore posts from serversCCoder.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
Railway dashboard unusable on all my projects due to random 404 errors
Recently I'm having a problem where every time I open a project its a pain to do anything because at any random time/action I get thrown into the 404 screen or don't get to the dashboard at all. My internet is stable and this problem only started happening from 2 weeks ago to now.
In fact it's so random that even if I don't do anything (just let the project page open) I get thrown in and out of the 404 screen by itself from time to time.
For completeness sake the project ID of the project shown on video is
2618dea9-bf34-4645-8e04-87a0c9ac02ca
but it happens with any project in my dashboard.5 replies
OAuth2 problems on production
Hey, so I was trying to setup OAuth2 in my webapp so I can login via Discord on it. I used the Auth.js node package and while testing locally it worked fine. I then proceeded to deploy it in railway and added the railway generated domain to the "Redirects URI" in discord app management.
But when I try to login I get a warning message from my browser saying that "The data I'm about to send is not secure" and if I click to ignore it and send it anyway I just get sent back to the login page again. This is shown in the attached video (sorry, its in portuguese, but the warning is translated to the quoted text above).
I then tried setting up a custom domain for the website to see if something changed. I then added the new domain to the discord app management page and initially the error was different, it was a discord error saying that the
redirect_uri
was wrong (which it wasn't). I thought it could be discord taking a while to update but no luck still. I then turned off the Cloudflare Proxy in my DNS record and the "The data I'm about to send are not secure" problem came back.
I've spent far too long on this and was wondering if anyone had this kind of problem before and managed to solve it.
Thank you in advance for reading this (:15 replies