From 1cc758e832929d5314f834cf95cf81f00fd58359 Mon Sep 17 00:00:00 2001 From: Sven Seeberg Date: Fri, 19 Nov 2021 13:21:25 +0100 Subject: [PATCH] Docs: document MM 6.x configuration --- BareMetal.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BareMetal.md b/BareMetal.md index 311abe7..b9c31a7 100644 --- a/BareMetal.md +++ b/BareMetal.md @@ -129,6 +129,11 @@ Change `HOSTNAME` by hostname or ip of the server where you have installed Matte Since Mattermost 4.9, these fields are disabled in admin panel, so you need to edit directly section `GitLabSettings` in the Mattermost configuration file `config.json`. +Since Mattermost 6.x the configuration needs to be changed in the `Configurations` SQL table. After setting the `Gitlab Site URL`, `Application ID` & `Application Secret Key` via the System Console, the following SQL commands can fix the URLs: +- `UPDATE Configurations SET Value=REPLACE(Value, 'https://mm-ldap.example.com/oauth/authorize', 'https://mm-ldap.example.com/oauth/authorize.php');` +- `UPDATE Configurations SET Value=REPLACE(Value, 'https://mm-ldap.example.com/oauth/token', 'https://mm-ldap.example.com/oauth/token.php');` +- `UPDATE Configurations SET Value=REPLACE(Value, 'https://mm-ldap.example.com/api/v4/user', 'https://mm-ldap.example.com/oauth/resource.php');` + In the `config.json` file, GitLab configuration is gathered in the section `GitLabSettings`. You have to enable it and to fill parameters with your values. Once completed, the section should look like : ```