-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to use TLS : ERRO[0000] Can't connect to the proxy: EOF #12
Comments
Hey @damien-reyre! Sorry for the long delay. Tty-proxy doesn't have support for TLS. I down-prioritized that as I was using nginx in front (see config here), and so I had TLS terminate at that level. It should not be too difficult to add TLS support natively to tty-proxy, though, and I can point you in the right direction if you want to do it. |
Hey @elisescu, Yes, a reverse proxy can be good for me. I prefer to set up via Traefik compared to nginx. But I can try to configure nginx. I don't see any port about 9000, can you tell more about it? In the case, you want to set up the TLS with nginx. We need to configure the port "443" in tty-proxy for having the URL redirected in HTTPs? |
Aah, yeah. The port 9000 is the port where the
|
Thanks for the information. For testing, I'm using your binary: I created a nginx container (with ngx_stream_module):
Here is my nginx.conf:
Error I get from nginx (error.log):
docker compose logs nginx-tty-proxy:
Concerning the certificate, I generated it via Certbot: |
It's hard for me to say what could go wrong only from this, but I can share some thoughts/questions that may be helpful:
Hope it helps, and let me know if I can help further |
Thanks for your answer. I changed the
After using the URL, I got a Session closed and this error:
Currently, I can see the communication between the tty-share and tty-share and the access from the nginx via the logs. Logs from the tty-proxy:
Logs from nginx (access.log):
|
Do you have any idea? @elisescu |
Still stucked to this issue @elisescu |
Sorry for the silence, @damien-reyre. I couldn't write back when I saw your message, and then completely forgot to get back to you. |
Hello @elisescu, Thanks for your answer. I can confirm it's working when I use the tty-share with the commit and the flag Now, I just need to try with a Traefik in front :) |
Hello,
I tried to use the tty-proxy with no TLS : working well.
I tried to use tty-proxy with TLS and not working. I think I forgot something to configure.
I modified the
Dockerfile
to open 2 ports and the URL:docker-compose.yaml
My certs:
Logs from the tty-proxy:
tty-proxy | time="2023-06-16T14:58:29Z" level=info msg="Listening on address: http://:1443, and TCP://:4567"
tty-proxy | time="2023-06-16T14:58:59Z" level=warning msg="Cannot perform handshake on the back connection: %sinvalid character '\\x16' looking for beginning of value"
When I tried to connect:
./tty-share --tty-proxy xxx.xxxx.xxx:4567 --public
ERRO[0000] Can't connect to the proxy: EOF
The text was updated successfully, but these errors were encountered: