How to Point a Domain to LXC using NGINX in Host

If you have a website or a web application in a LXC, you need a way to let people access it. We can do it by assigning a domain to the LXC.