SSL redirect issue with Gitlab Mattermost

Summary

When setting up GitLab + Mattermost, http works, however, when https is enabled, it just redirects to gitlab, and doesn’t go to Mattermost.

Steps to reproduce

Set up the following lines in gitlab.rb:

mattermost['service_use_ssl'] = true
mattermost_nginx['redirect_http_to_https'] = true
mattermost_nginx['ssl_certificate'] = "/etc/letsencrypt/live/[domain]/fullchain.pem"
mattermost_nginx['ssl_certificate_key'] = "/etc/letsencrypt/live/[domain]/privkey.pem"
mattermost_nginx['custom_gitlab_mattermost_server_config'] = "location ^~ /.well-known {\n alias /var/www/letsencrypt/.well-known;\n}\n"

Expected behavior

SSL should be working on both Gitlab and Mattermost.

Observed behavior

See the summary. Don’t know where to even get an error log for this type of issue. It reconfigured successfully, so I have no idea.

Edit 1/5/2018: Moved to relevant topic section.

Hi @miguemely - can you check what your site URL is set to in the Mattermost config settings?

@lfbrock I have the exact same Issue as OP. My site URL in gitlab.rb is set to the same as my LE cert in /etc/letsencrypt/live/

Is there a doc for getting GL-MM to work with LE certs? Or really any manual certs?

Hi @SSD! Thank you for reaching out.

Would this doc help: https://docs.mattermost.com/deployment/ssl-client-certificate.html?highlight=ssl?

Let me know if it doesn’t help and I can ask one of our engineers to help with this.