Thank you Domaray. Your instruction works perfectly! And also solved an issue I had with “Unable to login” issue on the Android app.
Fyi, for anyone who has a “400 Bad Request” in step 8 when using the external URL. You can follow this solution to solve it: Home assistant (400 Bad Request) Docker + Proxy - Solution