If you want to use Domain Name for ERPNext, following is the step:

  1. Complete the Domain Name resolution on your Cloud Console
  2. Modify the Nginx vhost configuration file:  /etc/nginx/conf.d/frappe-bench.conf
    replace site1.local with www.yourdomain.com
....
server {
	server_name
		site1.local
		;

	root /home/frapper/frappe-bench/sites;
.........
  1. Restart Nginx Service
sudo systemctl restart nginx