Acabo de habilitar HTTPS para mi foro de Discourse (Let’s Encrypt + nginx en el sistema anfitrión). No se agregó ninguna redirección, por lo que los visitantes pueden usar HTTP o HTTPS. Todo funcionó como se esperaba.
Luego intenté habilitar la autenticación de Google Oauth2. Sin embargo, noté que Discourse llamó a Google Oauth2 con redirect_uri configurado en la URL HTTP del foro, mientras que el foro se abrió con HTTPS.
I got it working. I used Certbot to manage Let’s Encrypt on my host system. It turned out that some rules Certbot added to the nginx config file is not fully compaitible with Discourse docker. I fixed it according to Running other websites on the same machine as Discourse.