I’m setting up a gitea server and want to serve http and ssh via the same hostname and have both be publicly accessible. I know I can do this by just a plain DNS record, but I’d like to proxy at least the http through cloudflare, but I cannot figure out how to do this.
Things I’ve tried:
Just setting up a proxied DNS record. This proxied the http traffic beautifully, but the ssh traffic just times out. Based on the docs, this is expected, the docs recommend Spectrum.
Spectrum. SSH proxying is possible via Spectrum, but it required me to delete my A record. The new record only works with ssh, http traffic just errors out. I cannot add another A record once the Spectrum record is in place.
Cloudflare Tunnel Public Hostname via Zero Trust. This will work for http, but ssh requires either the browser or WARP client, which does not work in a public access use case like mine. I can’t create both Spectrum and Cloudflare tunnel records at the same time.
Please advise. Thanks.