I just enabled HTTPS for my Discourse forum (Let’s Encrypt + nginx on host system). No redirection was added so visitors can use HTTP or HTTPS. Everything worked as expected.
Then I tried to enable Google Oauth2 authentication. However, I noticed that Discourse called Google Oauth2 with
redirect_uri set to the HTTP forum URL while the forum was opened with HTTPS.
How can I fix this? My forum is https://discussion.listary.com/ . Thanks in advance for any help.