How to make HTTPS for my ERPNext?

Dear Javid_Hussain and all friend,

Now, it work I can used https://mycompany.com.

Dear new ERPNext user,

If you are new for Linux/google cloud/ERPNext don’t panic and stay clam. ERPNext are easy to setup in google cloud. Below are my step that it work for me (I don’t understand it but it work)

run command in your google ssh (yourname : accouut in google)

  1. yourname@testsystem:~$ apt-get update
  2. yourname@testsystem:~$apt-get upgrade
  3. yourname@testsystem:~$wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
    sudo python install.py --production
  4. yourname@testsystem:~$sudo python install.py --production

If you have no any error you will have http://ipaddress for ERPNext, if you map you ipaddress with DNS service you will have http://youcompany.com as ERPNext web service

Next we need to make it to Https://yourcompany.com for your safety.

  1. yourname@testsystem:~$ sudo su - frappe
  2. frappe@testsystem:~$ cd frappe-bench/sites
  3. frappe@testsystem:~/frappe-bench/sites$ mv site1.local mycompany.com
  4. frappe@testsystem:~/frappe-bench/sites$ nano mycompany.com/site_config.json

nano just like text edit if you never used like me just check at youtobe, change text to

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
}
Save and exit
9) frappe@testsystem:~/frappe-bench/sites$ cd …
10) frappe@testsystem:~/frappe-bench$ sudo -H bench setup lets-encrypt mycompany.com

After this step will request you to put some information just put … woww, you will get https://

*** now still need to set auto renew *** I will try and update!

10 Likes