Public port 443, server another port


I wanted to ask for help with a problem that I don’t know how to solve.

I want to change the port of my server to something other than 443 or 80 but I want the port used when accessing my web service to not be visible (it cannot be visible to him), the user would always access in a normal way “domain .com” without having to enter any port.

My idea would be:

Instead of just putting my server’s IP in my website’s DNS configuration, I also put the port it should connect to.

Is there any way to do this? Any rules?

You can change your serverport with origin rules.