GitHub
Leer hoe je LibreChat configureert om GitHub te gebruiken voor gebruikersauthenticatie.
Een GitHub-applicatie aanmaken
- Ga naar je Github Developer settings
- Maak een nieuwe GitHub-app
GitHub Applicatieconfiguratie
- Geef het een
GitHub App nameen stel jeHomepage URLin- Voorbeeld voor localhost:
http://localhost:3080 - Voorbeeld voor een domein:
https://example.com
- Voorbeeld voor localhost:
- Voeg een geldige
Callback URLtoe:- Voorbeeld voor localhost:
http://localhost:3080/oauth/github/callback - Voorbeeld voor een domein:
https://example.com/oauth/github/callback
- Voorbeeld voor localhost:
- Schakel het selectievakje met het label
Activein deWebhooksectie uit
- Scroll naar beneden naar
Account permissionsen stelEmail addressesin opAccess: Read-only
- Klik op
Create GitHub App
.env Configuratie
- Klik op
Generate a new client secret
- Kopieer de
Client IDenClient Secretin het.envbestand
DOMAIN_CLIENT=https://your-domain.com # use http://localhost:3080 if not using a custom domain
DOMAIN_SERVER=https://your-domain.com # use http://localhost:3080 if not using a custom domain
GITHUB_CLIENT_ID=your_client_id
GITHUB_CLIENT_SECRET=your_client_secret
GITHUB_CALLBACK_URL=/oauth/github/callback
# GitHub Enterprise (optional)
# Uncomment and configure the following if you are using GitHub Enterprise for authentication
# GITHUB_ENTERPRISE_BASE_URL=https://your-ghe-instance.com
# GITHUB_ENTERPRISE_USER_AGENT=YourEnterpriseAppName- Sla het
.envbestand op
Let op: Als je Docker gebruikt, voer dan
docker compose up -duit om de wijzigingen in de .env configuratie toe te passen.
Hoe is deze gids?