> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/on-premises/nl/configuratie/overleaf-toolkit/github-synchronisatie.md).

# GitHub-synchronisatie

{% hint style="info" %}
Deze functie is ontwikkeld door [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro), gewijzigd door [yu-i-i/overleaf-cep](https://github.com/yu-i-i/overleaf-cep). Het is geïntroduceerd vanaf v6.2.0 en later. Het is nog steeds in bètastatus. We hebben uw feedback nodig als u problemen ondervindt.
{% endhint %}

{% columns %}
{% column %}

<figure><img src="/files/0c6cc5e566aecd92b65f67b7c727fd5c2ee61c9a" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/9eb55a8f1d52fd7d1705ef919f625869a9dec8fd" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}

<figure><img src="/files/f146e94b67436a312632eef02f36e763425d65e0" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/56b3bafeb5347805e08652ad4d60f98158528596" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

### GitHub-synchronisatie instellen

{% hint style="warning" %}
U moet [git-bridge](/on-premises/nl/configuratie/overleaf-toolkit/git-integration.md) eerst inschakelen voordat u GitHub-synchronisatie gebruikt.

{% code title="config/overleaf.rc" %}

```dotenv
GIT_BRIDGE_ENABLED=true
```

{% endcode %}
{% endhint %}

Bezoek [ontwikkelaarsinstellingen](https://github.com/settings/developers) om uw GitHub OAuth-toepassing aan te maken en uw `CLIENT_ID` en `SECRET`.&#x20;

**Opmerkingen**: uw OAuth-callback-URL is: `${OVERLEAF_SITE_URL}/user/github-sync/oauth2/callback`.

Voeg vervolgens de volgende instellingen toe aan uw Overleaf-omgevingsvariabelebestanden.

{% code title="config/variables.env" overflow="wrap" %}

```dotenv
# gebruikt om het GitHub-toegangstoken van de gebruiker te versleutelen.
# Hoe te genereren: `openssl rand -hex 32`
GITHUB_TOKEN_CIPHER_PASSWORD=0123456789ABCDEFG # wijzig dit naar uw eigen waarde

# GitHub-synchronisatie-instellingen
GITHUB_SYNC_ENABLED=true
GITHUB_SYNC_CLIENT_ID=
GITHUB_SYNC_CLIENT_SECRET=

# OAuth-callback is: ${OVERLEAF_SITE_URL}/user/github-sync/oauth2/callback
# (Optioneel) GITHUB_SYNC_PROXY_URL=http://10.0.0.1:10808
```

{% endcode %}

{% hint style="warning" %}
Voordat u de GitHub OAuth-callback-URL configureert, zorg ervoor dat `OVERLEAF_SITE_URL` correct is ingesteld.
{% endhint %}

Als u zich op het vasteland van China bevindt, moet u mogelijk een proxy configureren om GitHub te kunnen gebruiken. Stel de volgende omgevingsvariabele in: `GITHUB_SYNC_PROXY_URL=http://10.0.0.1:10808`.

{% hint style="warning" %}
Gebruik niet `127.0.0.1` als proxy-host. Als de proxy op de hostserver draait, gebruik dan het LAN-IP van de server (zoals `192.168.1.xx`) als adres en zorg ervoor dat de proxy is geconfigureerd om verbindingen van apparaten op het lokale netwerk te accepteren.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/on-premises/nl/configuratie/overleaf-toolkit/github-synchronisatie.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
