C
Coder.com•2y ago
Hannsr

Port ForwardingSSL issues

Hey everyone, I just ran into an issue with port forwarding using the coder WebUI. When I try to open a website using port forwarding on port 443 I only get
The plain HTTP request was sent to HTTPS port
The plain HTTP request was sent to HTTPS port
- Apparently it always uses http instead of https? I also tried to use the CLI port forward, but of course this leads to an SSL error as the domain names don't match. Basically what I want is to access the website that is being developed inside the workspace with https, not http. Probably again me being blind to an obvious solution 😄 Thanks in advance!
3 Replies
Phorcys
Phorcys•2y ago
it does always use http you should make your app listen on http but expect being accessed as https coder is essentially reverse-proxying your app but whenever you use web port-forward your browser will visit the page as https, and the coder agent is the one relaying the http traffic to your coder server if you're wondering about security because of http then it's definitely not an issue in this case
Hannsr
HannsrOP•2y ago
Oh alright, thanks. It's not as much about security, but more about replicating the production system as close as possible. Changing nginx to serve http instead shouldn't be too bad though.
Codercord
Codercord•2y ago
Marked the thread as resolved.

Did you find this page helpful?