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.