[warn] net.devtunnel: periodically re-register tunnel

I'm attempting to set up coder (via docker) for a class, and I get an error when trying to connect to the URL provided. Interestingly, it manages to get the tunnel URL in 0ms.
No description
12 Replies
Codercord
Codercord2mo ago
<#1287932062493446247>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
mtfplex
mtfplexOP2mo ago
My guess is that the firewall is blocking something? Is it possible to use a local IP rather than the tunnel URL?
mtfplex
mtfplexOP2mo ago
When I send my env vars to this, I get this
No description
mtfplex
mtfplexOP2mo ago
No description
Phorcys
Phorcys2mo ago
yeah so your firewall is probably blocking access to our try.coder.app tunnel yes, by setting the access URL, but I can see that you already did is your Coder instance behind a load balancer/reverse proxy?
mtfplex
mtfplexOP2mo ago
I don't believe so. It's running on a Debian VM with all network traffic allowed.
Phorcys
Phorcys2mo ago
okay, since the access URL has to be any URL where your Coder server can be access, it doesn't seem to be correct here can you access the UI via https://192.168.0.81 ?
mtfplex
mtfplexOP2mo ago
Not on the VM and not from outside the VM Found out why, I forgot to use the port of 7080 set at CODER_HTTP_ADDRESS Is it It's fine to set the port to 80 or 443?
Phorcys
Phorcys2mo ago
yes you have to use the exact URL that is used to access the UI basically
mtfplex
mtfplexOP2mo ago
To make coder work on HTTP and HTTPS, would I simply add these lines to my docker compose?
# Enable TLS and listen on port 443)
CODER_TLS_ENABLE: true
CODER_TLS_ADDRESS: 0.0.0.0:443

## Redirect from HTTP to HTTPS
CODER_REDIRECT_TO_ACCESS_URL: true
# Enable TLS and listen on port 443)
CODER_TLS_ENABLE: true
CODER_TLS_ADDRESS: 0.0.0.0:443

## Redirect from HTTP to HTTPS
CODER_REDIRECT_TO_ACCESS_URL: true
Answer, is yes. Thank you very much @Phorcys !
Phorcys
Phorcys2mo ago
yes closing the issue since you got it figured out! please leave any feedback on the docs/the product/etc in #feedback :)
Codercord
Codercord2mo ago
@Phorcys closed the thread.
Want results from more Discord servers?
Add your server