2016-09-20 1 views
0

gitlab에서 특정 지침을 따라야합니다. 나는 현재 소스가 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. 

나는 나에게 사용할 수있는 /etc/gitlab/gitlab.rb 파일이없는 - 그 gitlab 지침입니다.

  1. 옴니버스 패키지가 아닌 소스에서 설치된 gitlab 인스턴스의 구성을 어떻게 추가 할 수 있습니까?

  2. 편집 할 파일은 무엇이며 파일을로드하려면 rake 명령은 무엇입니까?

+0

소스에서 설치하는 경우 설정은'gitlab.yml'이어야합니다. 그 메모에 힘든, 나는 옴니버스가 아닌 설치에 대해 중요한 통합이 가능하지 않다고 생각합니다. – Fairy

+0

@Fairy 감사합니다. GitLab 소스 사용자에게 왜 지침이 없는지 궁금합니다. – ILikeTurtles

+0

소스 설치가 오류가 발생하기 쉽기 때문에 모든 사람들이 옴니버스 패키지를 사용하기를 원합니다. – Fairy

답변

0

내가 mattermost/config/config.json에서 gitlab 구성을 입력하고 내 설정을 적절한 끝점과 비밀 및 ID로 업데이트했습니다. 정확한 정보는 gitlab gui에서 필요합니다. 나는 적절한 gitlab 내에 토큰을 만들고 그 정보를 중요한 것으로 연결했다. 우리 네트워크가있는 방식 때문에/etc/hosts 파일을 편집해야했지만 대부분의 사용자에게는 필요하지 않습니다.

"GitLabSettings": { 
    "Enable": true, 
    "Secret": "abc123", 
    "Id": "abc123", 
    "Scope": "", 
    "AuthEndpoint": "http://gitlab/oauth/authorize", 
    "TokenEndpoint": "http://gitlab/oauth/token", 
    "UserApiEndpoint": "http://gitlab/api/v3/user" 
}, 

는 gitlab 내부 토큰을 얻으려면 -

  1. 로그인
  2. 여기 mattermost 응용 프로그램에 대한 토큰을 추가 응용 프로그램 설정을
  3. 이동을 프로필에 관리자
  4. 이동로 이 데이터를 사용하여 구성 파일을 중요한 것으로 채 웁니다.