Home Assistant on subdomain

I would like to run Home Assistant on my own subdomain. I set up the subdomain under CPanel. How can I now connect my Home Assistant to the subdomain?

Set the A record of the subdomain to the external ip of your router
In the router, forward 8123 to the local ip of your HA instance