SSL_connect restituito=1 errno=0 peeraddr=162.243.189.2:443 stato=errore: verifica certificato fallita (corrispondenza nome host errata)

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

2 Mi Piace