SSL_connect returned=1 errno=0 peeraddr=162.243.189.2:443 state=error: فشل التحقق من الشهادة (عدم تطابق اسم المضيف)

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

إعجابَين (2)