The discussion revolves around changing the base_url in Discourse email templates to use “https://”. akvadrako wants to modify the base URL to ensure links shared externally are secure, preventing potential MitM attacks. itsbhanusharma suggests enabling the force_https setting, which omarfilip is already using, but still experiencing issues with email links. Falco explains that force_https is hidden and enabled by default, and can be verified in the rails console. Despite this, omarfilip finds that the setting is enabled, yet email links are still not using “https://”.
The links discourse is sending in emails use the http:// scheme, not https. Is there a way I can modify the base_url for email templates?
I like to setup my webserver so all plaintext http requests are redirected to my https homepage. This ensures links shared externally with an incorrect scheme will not work, so an accidental future misconfiguration will not expose any users to MitM attacks. So the email links will be broken, as a redirect will not work.