Forum archive
502 bad gateway after turning on mattermost tls
hi everyone,
i messed up and am hoping for some guidance. i set up a turnkey mattermost sever and got everyting up and running. i followed the steps found here to configure tls within the app:
https://docs.mattermost.com/install/config-tls-mattermost.html
i made changs in the system console of the app and on the server. once i restart the mattermost service, i am now getting a 502 bad gateway error when access messenger.threeparables.com.
any tips on getting this corrected? thanks in advance for your help with this!
They do only ship with a self-signed certificate, but as of v14.2, Confconsole supports getting free Let's Encrypt TLS certificate, straight from your server's console.
Reading through the docs you link to, I'm almost certain that your changes have broken your server. As I hinted above, we already configure Mattermost behind a Nginx reverse proxy. My guess is that Mattermost is not able to bind to port 443, because Nginx already is. Because Mattermost isn't available on the port which Nginx is trying to connect to it on (8065), Nginx is giving a 502 error.