Links in emails are using http instead of https

AI-generated summary

The discussion revolves around an issue where links in emails sent by a Discourse forum are using http instead of https, despite having TLS enabled and force_https checked in settings. Muhammad initially reports the issue and provides details about their setup.

IAmGav suggests that the problem might be related to the fact that the site is not accessible via https by default, as evidenced by the browser behavior when accessing the site directly. Muhammad clarifies that the site is indeed hosted on https, but another application (Gitlab) is hosted on port 80, which might be causing the issue.

riking points to a guide on running multiple websites on the same machine as Discourse, which might be relevant to the problem.

Ultimately, Muhammad discovers that the force_https setting was not actually enabled due to browser caching, and another developer from their team confirms the setting, which resolves the issue.

I have successfully completed all the steps to setup a discussion forum for my company.
I have TLS enabled and force_https is checked in settings.
The activation emails to new users are sent with http instead of https. e.g
Welcome to Folio3 NS Community!

Click the following link to confirm and activate your new account:
http://ns-community.folio3.com/u/activate-account/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I check the email tempate in settings from UI , and there is a variable base_url which is containing http and my domain name.
Any ideas on how to update the base_url, so that it contains http instead of https.
(My site is accessible by https not http)
M. Saqib

If i go to your site ns-community.folio3.com I do not get the https version of it

This will mean, that emails that are sent with give the http:// version as it also dont get the https:// version

the email is setup like this:

Welcome to %{site_name}!

Click the following link to confirm and activate your new account:
%{base_url}/u/activate-account/%{email_token}

If the above link is not clickable, try copying and pasting it into the address bar of your web browser.

I would suggest you look at your https:// setup. Once you fix that, your email links will be fixed.

My site is hosted at
https://ns-community.folio3.com/

and not http://ns-community.folio3.com/

Another application(gitlab) is hosted at port 80 i.e http.
Do you mean, I have to add a rediection to https on my port 80 , to make the base_url string get the correct https in the beginning?

Sounds like you need to go through this guide:

It was my bad. I somehow missed the settings “force_https” and it was showing checked to me. (may be browser caching)
Another developer from my team checked that option and the emails are now received having links correctly as https.

Thank you all for your valuable comments!