Skip to main content
LibreChat is joining ClickHouse to power the open-source Agentic Data Stack 🎉 Learn more
LibreChat

Discord

Leer hoe je LibreChat configureert om Discord te gebruiken voor gebruikersauthenticatie.

Een nieuwe Discord-applicatie aanmaken

image

Discord-applicatieconfiguratie

  • Voeg in de algemene OAuth2-instellingen een geldige redirect URL toe:
    • Voorbeeld voor localhost: http://localhost:3080/oauth/discord/callback
    • Voorbeeld voor een domein: https://example.com/oauth/discord/callback

image

  • In Default Authorization Link, selecteer In-app Authorization en stel de scopes in op applications.commands

image

  • Sla wijzigingen op en reset de Client Secret

image image

.env Configuratie

  • Plak je Client ID en Client Secret in het .env bestand:
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

DISCORD_CLIENT_ID=your_client_id
DISCORD_CLIENT_SECRET=your_client_secret
DISCORD_CALLBACK_URL=/oauth/discord/callback
  • Sla het .env bestand op

Let op: Als je Docker gebruikt, voer dan docker compose up -d uit om de wijzigingen in de .env configuratie toe te passen.

Hoe is deze gids?