GitLab Self-Hosted

Integrating with GitLab Self-Hosted will allow you to use it as a Git hosting provider in your Buddy project

Please mind Buddy Enterprise will only work with GitLab in v8.12 and newer.

Register GitLab Self-Hosted OAuth app

  1. Log in to your Buddy Enterprise workspace as admin and add a new project.
  2. Select GitLab as the provider.
  3. Click Configure Enterprise Edition.
  4. Paste the domain or IP address of your GitLab installation.
  5. Copy the Callback URL line.
  6. Go to https://IP_ADDRESS/profile/applications, where IP ADDRESS is the domain or IP of your GitLab installation.
  7. Fill in the application details:
    • Name → anything, eg. Buddy Enterprise
    • Redirect URI → paste the redirect URI that you’ve copied from Buddy Enterprise Click Save application to save changes.
  8. Copy Application Id and Secret

Configure GitLab Self-Hosted app in Buddy

  1. Log back to your Buddy Enterprise workspace as admin.
  2. Go to the workspace Preferences and switch to the Applications tab.
  3. Click Configure under the GitLab logo and paste the Id and Secret.
  4. Set up the Webhook address. The webhook is an URL to which GitLab will send information on changes in the repositories.
  5. Click Save changes and restart the machine to apply the new settings.

IMPORTANT: make sure that external_url is properly set in your /etc/gitlab/gitlab.rb config file or the integration will not work.