Links behind HAPROXY

Your software
My Mautic version is: 3
My PHP version is: 7.3
My Database type and version is: MariaDB

Your problem
I’m running mautic on a linux box behind HAPROXY running on a pfsense. I have https redirection on the proxy working properly, but all links in mautic are coming up with http, which causes them to fail to load when being sent out.

Is there a setting to modify the links in outgoing emails?

Thank you

Hi, did you configure your SSL in your haproxy or in the container?

When you go in Mautic to Configuration → System settings → Site url… Does it display an url with https?

Mautic uses that setting to generate links in emails. If there is no https links will be with http…

If you use Haproxy to do the SSL, and the connection goes unencrypted to the Mautic server than the Mautic server will be with http. You can try to use SSL on the Mautic server too, and configure Haproxy to use an encrypted connection to the Mautic server.

I used HAPROXY to do the SSL, and the URL inside mautic has https.

I’ll try generating an internal cert for the mautic server to see if that changes anything

Try to add this in the second line of your index.php:
$_SERVER[‘HTTPS’] = ‘on’;
Let me know how that works out!
Joey