Wkhtmltopdf rendering without CSS - custom and core - all standard solutions have no affect - ubuntu 18.04

TBH I can’t say if these two are equivalent so you may have to experiment:

bench set-url-root mysite.com https://mysite.com
bench set-config host_name https://mysite.com

They generally affect this key: value pair

“host_name”: “https://mysite.com”,

here in this file:

~/sites/mysite.com/site_config.json

As well these you need to set for example this too:

bench set-ssl-key mysite.com /etc/nginx/ssl/nginx.key
bench set-ssl-certificate mysite.com /etc/nginx/ssl/nginx.crt

If you edit site_config.json be sure to observe the json syntax with commas and so on.

I found this that may help with your learning SSL Configuration for HTTPS

Your Digital Ocean host is well documented - for example you may need to specify mysite.com in /etc/hosts? A creative search here say ‘Digital Ocean hosts ssl’ may give you clues.

2 Likes