I have a domain
that sub domain has two ports opened
[email protected]@ps://something.example.com that opens the web application (interface)
something. example.com:3030 that is a web socket (secure socket IO, featherJS) server
It works perfectly but I have to disable proxy on Cloudflare (gray cloud)
I decided to use the Load Balancer option of Cloudflare for the https:// to fail over the web app in case of failure but as I understand I have to enable Cloudflare (orange cloud) for this subdomain. If I do this, my clients cannot connect using socket io. The obvious solution would be to separate two services with two domains like
something . example . com for web (ORANGE cloud)
something-node . example . com for socket server (GRAY cloud)
but i can’t since my software is already installed in 5000 pcs and already have hard-coded the same something.example.com for both cases (web+sockets).
I was wondering if that would be possible to proxy (ORANGE cloud) that subdomain and some how exclude the traffic for port 3030 and redirect to original server. I tried with SRV record but I failed, it looks like I cant really understand how it works or maybe its not the proper way to do it.
Any ideas how to solve it?