Ho appena abilitato HTTPS per il mio forum Discourse (Let’s Encrypt + nginx sul sistema host). Non è stata aggiunta alcuna reindirizzamento, quindi i visitatori possono utilizzare HTTP o HTTPS. Tutto ha funzionato come previsto.
Poi ho provato ad abilitare l’autenticazione Google OAuth2. Tuttavia, ho notato che Discourse ha chiamato Google OAuth2 con redirect_uri impostato sull’URL HTTP del forum, mentre il forum era aperto 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.