Cloudfare https ports

My ha is running on a device over my local network. What I did was purchase a domain and tunneled with Cloudflase. Its does works perfect. The problem is when changing http_port on ha config.yaml. As you said by default is 8123. So I changed it to 8443 and then it gave me that 403 error. Otherwise Ive just purchased a ssl certificate on the hosting server