gogs: Error when trying to clone
Hi!
I’ve installed Gogs with the Packager package And I’ve finally got it to work!
But now, I can’t clone…
I get this error:
gnutls_handshake() failed: An unexpected TLS packet was received.
And if I access the page with SSL/HTTPS, then I get Secure Connection Failed
I’m not quite sure how to fix this I’m using CloudFlare and Vesta to handle my DNS and SSL
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 24 (14 by maintainers)
I encountered the same issue (unable to clone via SSH) and discovered that Cloudflare only proxies HTTP traffic as per this article.
If you want to use Cloudflare’s reverse proxy (and their features), you define a secondary domain for SSH traffic which doesn’t proxy through Cloudflare. For example you could have git.example.com for HTTP traffic and git-ssh.example.com for your SSH traffic.
Edit: You would also want to set the
SSH_DOMAIN
to the domain for your SSH traffic as per https://gogs.io/docs/advanced/configuration_cheat_sheet