I am running the Discourse Bitnami stark 1.7.10-0 on macOS Server (macOS 12.12.4 and Server 5.3), installed with the macOS Installer.
As I already have the macOS Apache server set on the 80 port for http and 443 for https, I set the Bitnami apache to use the ports 8010 for http and 8020 for https (actually not used in my config).
With the install wizard, I set the host to the one the forum is accessible from the internet (forum.thedomain. fr), but as I manage the SSL certificates with Let's Encrypt and in order to dont have to specify the port number into the URL, I set up a Reverse Proxy with the macOS Apache, which make the forum accessible from the internet (at http s://forum.thedomain. fr port 443), then pass the requests to htt p://forum.thedomain. fr:8010.
My problem is that the URLs of ressources embedded into emails or even on the forum are loaded from http://forum.thedomain. fr:8010 so the connexion is not encrypted, or //forum.thedomain.fr:8010 (which become http s://…) so in that case they are not loaded.
So my question is: is there a way to, either remove the port number from all ressource URLs, or force the 443 port into them? So that way all requests would go to the macOS Server virtual host, through an encrypted connexion, that Proxy Pass to Discourse (without encryption, which is ok because on the same machine).
PS: I edited the discourse.conf file only for the email sending method.