SSL_connect returned=1 errno=0 peeraddr=162.243.189.2:443 state=error: certificate verify failed (Hostname mismatch)

As said in the guide they must go under the env: section, together with other DISCOURSE_ like settings:

2 Likes