I noticed on a fresh installed instance working fine with SSL over a valid Domain that it cannot reached over a local ip in the same network (https://192.168.2.1). Before configuring SSL it was no problem, but after "sudo bench setup lets-encrypt" it only shows the “We will be back soon” screen from ERPNext.
The Web GUI ist still working when reaching over https://domain.com which was configured for it.
We have tried all stuff like: update, nginx reload, config reset etc. but still not possible to login via local IP only through the SSL domain.
I tried adding the local IP loike trentmu suggested, but still after nginx and server reboot it is the same error page " We will be back soon" and trying over the url it is working fine. I also had a hostname in the site_config.json which I have deleted.
Could it be that this is something about the erpnext firewall “sudo bench setup firewall”?
This is activated on this host but there is no command to deactivate is again, or is there?
I do not believe this is possible without setting nginx not to redirect port 80 to 443. Also, Let’s Encrypt only gives a cert for a domain, not for an IP address.
Tried is all, but it did not work. The final solution was a static local DNS Resolver entry and/or DNS Rebind exeption for the ErpNext domain if no DNS Resolver is present.