I hosted a hobby NodeJS Server from my Linux and all is fine by accessing my direct IP.
Because I find this ugly and also less secure, I decided to route my domain which is set to Cloudflare to my IP. Then as I access the URL, I was prompted with an Authentication that I had never set up.
The question is, why proxy-ing through Cloudflare causes this? And how to fix this?
EDIT: I seem to find out the reason. It seems that my server is prompting Authentication whenever the port is not specified. Means Cloudflare is trying to redirect to my IP without the port. But would still need to know the best practice in this scenario and how to solve it.
EDIT2: I solved this by moving my port to 80. Since that is by default. But would pretty much still want to know if it is possible to get other ports to work.