> For the complete documentation index, see [llms.txt](https://ayakaleaf-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://ayakaleaf-pro.ayaka.space/on-premises/nl/configuratie/overleaf-toolkit/github-synchronisation.md).

# GitHub-synchronisatie

{% hint style="info" %}
Deze functie is ontwikkeld door [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro), aangepast 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 je feedback nodig als je een probleem hebt.
{% endhint %}

{% columns %}
{% column %}

<figure><img src="/files/bb42926ce3e1589dc5e276c027f9741b4947f675" 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" %}
Je moet inschakelen [git-bridge](/on-premises/nl/configuratie/overleaf-toolkit/git-integration.md) eerst voordat je GitHub-synchronisatie gebruikt.

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

```dotenv
GIT_BRIDGE_ENABLED=true
```

{% endcode %}
{% endhint %}

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

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

Voeg vervolgens de volgende instellingen toe aan je 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 jouw 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 je de GitHub OAuth-callback-URL configureert, zorg ervoor dat `OVERLEAF_SITE_URL` correct is ingesteld.
{% endhint %}

Als je op het vasteland van China bent, moet je mogelijk een proxy configureren om GitHub te benaderen. Stel de volgende omgevingsvariabele in: `GITHUB_SYNC_PROXY_URL=http://10.0.0.1:10808`.

{% hint style="warning" %}
Gebruik niet `127.0.0.1` voor de proxyhost. Als de proxy op de hostserver draait, gebruik dan het LAN-IP van de server (zoals `192.168.1.xx`)-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://ayakaleaf-pro.ayaka.space/on-premises/nl/configuratie/overleaf-toolkit/github-synchronisation.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.
