我需要遵循 gitlab 中的某些说明。那些 gitlab 指令是 -
Manually (re)authorising GitLab Mattermost with GitLab
Authorise GitLab Mattermost
To do this, using browser navigate to the admin area of GitLab, Application section. Create a new application and for the callback URL use: http://mattermost.example.com/signup/gitlab/complete and http://mattermost.example.com/login/gitlab/complete (replace http with https if you use https).
Once the application is created you will receive an Application ID and Secret. One other information needed is the URL of GitLab instance.
Now, go to the GitLab server and edit the /etc/gitlab/gitlab.rb configuration file.
In gitlab.rb use the values you've received above:
mattermost['gitlab_enable'] = true
mattermost['gitlab_id'] = "12345656"
mattermost['gitlab_secret'] = "123456789"
mattermost['gitlab_scope'] = ""
mattermost['gitlab_auth_endpoint'] = "http://gitlab.example.com/oauth/authorize"
mattermost['gitlab_token_endpoint'] = "http://gitlab.example.com/oauth/token"
mattermost['gitlab_user_api_endpoint'] = "http://gitlab.example.com/api/v3/user"
Save the changes and then run sudo gitlab-ctl reconfigure.
If there are no errors your GitLab and GitLab Mattermost should be configured correctly.
我目前正在运行 gitlab 的源代码安装,但我没有可用的 /etc/gitlab/gitlab.rb 文件。
如何在从源安装而不是由综合包安装的 gitlab 实例中添加最重要的配置?
我要编辑哪些文件以及加载这些文件的 rake 命令是什么?