---
title: "How do I attach a self-hosted GitLab server?"
url: "https://ploi.io/documentation/deployment/how-do-i-attach-a-self-hosted-gitlab-server"
published: "2022-09-20"
last_updated: "2022-09-20"
---

# How do I attach a self-hosted GitLab server?

In Ploi, it is possible to have multiple source control provider accounts, including GitLab self-hosted.

To add your self-hosted GitLab server, head over to Source Control in your profile: <https://ploi.io/profile/source-control> and press the "Link self-hosted GitLab" button.

[![](https://ploi.io/storage/cB3ibg5sn5oDeQBCOkFDJTcDdwDDIbHXGNz19qLA.png)CleanShot 2022-09-20 at 10.48.48.png 72.21 KB](https://ploi.io/storage/cB3ibg5sn5oDeQBCOkFDJTcDdwDDIbHXGNz19qLA.png)In this window you'll be able to enter the following details:

- Label (to recognize your source control provider)
- Endpoint (the URL to your panel, like: https://gitlab.example.com)
- Token (the token to authorize with your self-hosted GitLab panel)

To grab the token, you'll need to create one. In your self-hosted GitLab panel head over to your profile:[![](https://ploi.io/storage/kewTRGb46e1dYjfhQjkH94zwRIGhTeNSwilpnSVt.png)CleanShot 2022-09-20 at 10.38.03.png 195.53 KB](https://ploi.io/storage/kewTRGb46e1dYjfhQjkH94zwRIGhTeNSwilpnSVt.png)Next press "Access tokens" on the left and create your token:[![](https://ploi.io/storage/G7VuWD76uczfS0hdqZCyiq0vf4B692DXuw2UyCI7.png)CleanShot 2022-09-20 at 10.38.32.png 558.05 KB](https://ploi.io/storage/G7VuWD76uczfS0hdqZCyiq0vf4B692DXuw2UyCI7.png)We advise to give the following scopes:

- api
- read\_api
- read\_user
- read\_repository
- write\_repository