1. Git Connections
Self-hosting Apidog
  • Overview
  • Introduction
    • Obtaining Apidog On-Premises License
    • System Requirements
    • Data Privacy & Compliance
  • Deployments
    • Docker Deployment
      • Standalone Docker Deployment
      • Hybrid Docker Deployment
      • Multi-Containers Docker Deployment
    • Kubernetes Deployment
      • Deploying Apidog on Kubernetes using Deployment Manifest
      • Deploying Apidog on Kubernetes using Helm
  • Post Deployment
    • Accessing Apidog Admin Panel
    • Accessing Apidog Web Interface
    • Installing Apidog On-Premises Client
  • Configurations
    • Environment Variables
    • Database Configuration
    • Storage Services Configuration
    • Authentication Providers
      • Using LDAP for Authentication
      • Using OKTA for Authentication
      • Using OAuth2.0 for Authentication
    • Git Connections
      • Overview
      • GitHub
      • GitLab
      • Azure DevOps
      • Bitbucket (Beta)
  • Maintenance & Upgrades
    • Updating Apidog
    • Backing up Apidog
    • License Renewal
    • System Design Flow
  • Troubleshooting
    • Troubleshooting
    • FAQ
  • Apidog API (coming soon)
  • Changelog
    • Apidog On-Premise Changelog Q1 2026 - v2.7.38
    • Apidog On-Premise Changelog Q2 2026 - v2.7.81
    • Apidog On-Premise Changelog Q3 2026 - v2.8.35
  1. Git Connections

GitLab

Version Requirement: The GitLab Git connection requires Apidog On-Premises image version 2.7.29 or later.

GitLab Configuration#

To integrate with GitLab, create a new OAuth app in the GitLab settings. For the GitLab SaaS version, visit the following URL:
https://gitlab.com/-/user_settings/applications.
image.png

Configuration Steps#

1.
Redirect Callback URL: Set the callback URL to your Apidog On-Premises API domain, followed by /api/v1/projects/git-connections/gitlab-callback.
Forexample:
https://your-apidog-domain.com/api/v1/projects/git-connections/gitlab-callback
2.
Scopes: Ensure that the api scope is selected.
3.
Once the OAuth app is created, make a note of the Application ID and Application Secret. Then, configure the following environment variables:
Environment VariableDescriptionDefault ValueNotes
GIT_CONNECTION_GITLAB_COM_ENABLEWhether to enable GitLab.com connectionfalseSet to true to enable GitLab.com integration
GITLAB_COM_AUTH_HOSTGitLab.com authentication host URL-Use https://gitlab.com for SaaS GitLab or your enterprise GitLab host
GITLAB_COM_KEYGitLab.com OAuth application client ID-Required for GitLab OAuth authentication
GITLAB_COM_SECRETGitLab.com OAuth application client secret-Required for GitLab OAuth authentication
GITLAB_SCOPEGitLab OAuth scope permissions-Define required permissions (e.g., api, read_user, read_repository). Must match the scope configured in your GitLab application
GITLAB_REDIRECT_URIGitLab OAuth redirect URI-Must match the redirect URI configured in your GitLab application
GIT_CONNECTION_GITLAB_COM_REJECT_UNAUTHORIZEDSSL certificate validation for GitLab.comtrueSet to false for self-signed certificates in enterprise environments

Configuration Example for GitLab SaaS Version#

- name: GIT_CONNECTION_GITLAB_COM_ENABLE
  value: 'true'
- name: GITLAB_COM_AUTH_HOST
  value: 'https://gitlab.com'
- name: GITLAB_COM_KEY
  value: <your-gitlab-client-id>
- name: GITLAB_COM_SECRET
  value: <your-gitlab-client-secret>
- name: GITLAB_SCOPE
  value: 'api'
- name: GITLAB_REDIRECT_URI
  value: 'https://your-apidog-domain.com/api/v1/projects/git-connections/gitlab-callback'
- name: GIT_CONNECTION_GITLAB_COM_REJECT_UNAUTHORIZED
  value: 'true'

Configuration Example for GitLab Enterprise Version#

- name: GIT_CONNECTION_GITLAB_COM_ENABLE
  value: 'true'
- name: GITLAB_COM_AUTH_HOST
  value: 'https://gitlab.yourcompany.com'
- name: GITLAB_COM_KEY
  value: <your-enterprise-gitlab-client-id>
- name: GITLAB_COM_SECRET
  value: <your-enterprise-gitlab-client-secret>
- name: GITLAB_SCOPE
  value: 'api'
- name: GITLAB_REDIRECT_URI
  value: 'https://your-apidog-domain.com/api/v1/projects/git-connections/gitlab-callback'
- name: GIT_CONNECTION_GITLAB_COM_REJECT_UNAUTHORIZED
  value: 'false'
Modified at 2026-10-26 09:06:51
Previous
GitHub
Next
Azure DevOps
Built with