Hello, I am using the pre-built ERPNext virtual image and am trying to do some demos showing typical behaviors, but emails sent by ERPNext contain incorrect links (back to ERPNext) for my configuration. Is is possible to configure the server domain and TCP port used to generate the links? Is it best to configure the vm system hostname to be the same as the domain it will be accessed by, and then “everything will just work”?
I am hosting the virtual image using VirtualBox. I’m using NAT networking because I only have one IP address from my ISP. To avoid a conflict between ERPNext and my existing webserver, I changed the port ERPNext uses and mapped client port 8080 to host port 8080 using VirtualBox networking. I did not change the ERPNext vm system hostname (leaving it at “erpnext”).
The “Complete Registration” button/link in new user emails gives the correct domain (e.g. “http://www.dalescott.net/update-password?key=Fgh…”) but the port is not included (should be http://www.dalescott.net:8080/update-password?key=Fgh…"). (also I cannot find where I configured this, either I forgot or it’s magic, can someone clarify which?
The “View this in your browser” link in emails sent by ERPNext use the vm hostname “http://erpnext.vm/Userfirstname.lastname@example.org?format=Standard&key=63…” (instead of “http://www.dalescott.net:8080/…”).