Can I use SSH and HTTP(S) on the same DNS name?

What is the name of the domain?

tunnel.example.com

What is the issue you’re encountering

Consider a DNS name tunnel.example.com, that points to a cloudflared tunnel. Can I use both, SSH and HTTP(S) for the same name at the same time?

One common use-case could be a self-managed GitLab instance that is available via HTTPS to all users, and securely exposes SSH with the same domain name only to authenticated, internal users via a cloudflared config.