This is what I did:
- Installed ERPNext on Ubuntu 16.04 server with --productions switch
- Setup DNS Multitenant service using the steps in this post:
[Solved] How do I make a tenant site a "Manufacturing" domain? No mfg modules get installed
- Next I used this command to allow the site1.local site to be recognized with a domain name:
“bench setup add-domain --site site1.local [my.sitename.com]”
- And finally followed steps here to put lets Encrypt certificate on the extra tenant sites
What I was not sure about, was how to treat the first site. Do I use the Lets Encrypt command through bench to apply it to “site1.local” or “my.sitename.com”
Or, is there a better way to do this? Like maybe should I have actually altered the name of “site1.local” in the /sites/ directory to be a full domain name instead and then go about the Lets Encrypt process on a real domain name?
I am just not sure how this works and I don’t really want to experiment and have to tear everything down and start from scratch with a blank server again. I know that the certificates are based on a URL (or at least I think thats the case) and “site1.local” is not really a URL. But then again “my.sitename.com” is not really the name of the site in the /sites/ directory so if I use it in the Lets Encrypt / bench process, will it work or will it just make a mess of everything?
Does anyone here have experience with this?
I have all my other tenant sites secured, I am just not sure how to proceed with the first site.