Step 1: Rename Site folder name
Switch to frappe user, if SSH’ed as root
sudo su - frappe
cd frappe-bench/sites
mv site1.local mycompany.com
Step 2: Add hostname
nano mycompany.com/site_config.json
Add the following line.
"host_name": "http://mycompany.com",
It should look like below
{
"db_name": "site1.local",
"db_password": "*********",
"host_name": "http://domain.org"
}
Be sure to add "," at the end of "db_password": "........",
bench setup nginx
Step 3: Install Letsencrypt
You need to have a DNS Multitenant Setup
bench config dns_multitenant on
cd /frappe/frappe/bench
sudo -H bench setup lets-encrypt mycompany.com