Mattermost, Inc.

Config.json settings dissapear

Hi guys,

I am new to developing and I am attempting to make my first minor change.

I would like to add an additional OAUTH provider (in addition to GitLab). I have successfully added a menu button.

I have copied the file:
/platform/web/react/components/admin_console/gitlab_settings.jsx

I have made some changes to the reference from the config.json file

"GitLabSettings": {
    "Enable": false,
    "Secret": "",
    "Id": "9999999",
    "Scope": "",
    "AuthEndpoint": "",
    "TokenEndpoint": "",
    "UserApiEndpoint": ""
},

However, when I save my changes to the file and do a ‘make run’ the service seems to just remove the entire set of settings.

Could anyone help point me in the right direction?

Regards,
K

Have you also modified https://github.com/mattermost/platform/blob/master/model/config.go and https://github.com/mattermost/platform/blob/master/utils/config.go#L206 ?