Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Subscribe my Youtube Channel and Support me
- https://youtube.com/@byteflick
- After login check for any updates or upgrade on the server and reboot the server by executing this command.
- sudo apt update && sudo apt upgrade && sudo reboot
- Now login into your frappe main user.
- sudo su erpnext
- Now change the directory where you installed the frappe bench.
- cd /home/erpnext/frappe-bench
- Now connect your preferred domain which you want to access. For example, I want to access ERPnext with byteflick.shadefocus.com
- So, first, add the A type record on your domain DNS. I am using cloudflare dns on my domain. We will now add the A record which will link the domain to our server IP.
- I want to access the ERPNext with this URL if you want to use another URL change this name to your preferred URL.
- Remember to turn off this proxy option otherwise, it will not work.
- Now we will turn on the DNS support on our ERPNext by using this command.
- bench config dns_multitenant on
- Now we will use this command to connect our domain with our site.
- bench setup add-domain yourdomain.com --site yoursitename
- Change youdomain.com to your preferred URL which we added the A record on cloudflare or any other dns provider and change the yoursitename to your site where you want to connect the domain.
- Now we will resetup the nginx configuration and restart nginx service.
- bench setup nginx && sudo service nginx reload
- Install packages that are important for letsencrypt SSL generation.
- sudo snap install core
- sudo snap refresh core
- sudo snap install --classic certbot
- sudo ln -s /snap/bin/certbot /usr/bin/certbot
- Now we will generate the SSL certificate by uing this command.
- sudo certbot --nginx
- Here type your email address where you want to receive important notices.
- Type "Y" to agree with Terms and Conditions.
- Again type Y and press enter.
- Now type the number where your domain is showing. My domain is showing on number 1. I will type 1 and press enter.
- Now access your ERPNext with your domain on your browser.
- Congratulations! We have successfully installed the SSL on the ERPNext on Linux server. So, that's all. I hope you have enjoyed my video. Do not forget to press the like button If you have not subscribed to my channel then please subscribe my channel and hit the bell icon to get the update on my latest videos.
- If you want videos on any other topic then comment below. We will try our best to help you.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement