Changing `external_url` does not update Mattermost config.json
ZD: https://gitlab.zendesk.com/agent/tickets/42920
If you change external_url
(e.g. from HTTPS to HTTP), the Mattermost config.json does not get updated to reflect the new changes. More specifically, the GitLabSettings
section in config.json do not get updated with the proper endpoints so user authentication may fail as described in http://forum.mattermost.org/t/bad-response-from-token-request-after-team-creation-auth/895/4.
Steps to reproduce:
- Configure
external_url
tohttps://mydomain.com
- Configure
mattermost_external_url
tohttps://mm.mydomain.com
- Run `sudo gitlab-ctl reconfigure
- Change
external_url
tohttp://mydomain.com
GitLab should update the API endpoints automatically.