I am trying to setup ssl properly. I’ve used the following instructions:
The changes do not affect anything on erpnext.
So calling http:// will still be unsecured and does not redirect to https. Of course, I did not even come to this point, since the https-version does not work at all.
Step 1: After configuring site_config.json like this
$ cd frappe-bench/sites/{{site_name}}
Add the following two lines to your site_config.json
"ssl_certificate": "/etc/letsencrypt/live/example.com/fullchain.pem",
"ssl_certificate_key": "/etc/letsencrypt/live/example.com/privkey.pem"
Step 2: On multi-tenant environment by
bench config dns_multitenant on
Step 3: Regenerate the nginx configuration followed by nginx restart
I don’t know why, but in my /etc/nginx/conf.d/frappe.conf both server entries were listening to port 443. After changing the first one to 80 it worked.