mirror of
https://github.com/vercel/chat.git
synced 2026-09-14 18:32:29 +08:00
47 lines
1.5 KiB
Bash
47 lines
1.5 KiB
Bash
# Bot Configuration
|
|
BOT_USERNAME=mybot
|
|
|
|
# Slack (optional)
|
|
# Single-workspace mode (hardcoded bot token):
|
|
# SLACK_BOT_TOKEN=xoxb-your-bot-token
|
|
# SLACK_SIGNING_SECRET=your-signing-secret
|
|
# Multi-workspace mode (OAuth - use instead of SLACK_BOT_TOKEN):
|
|
# SLACK_CLIENT_ID=your-client-id
|
|
# SLACK_CLIENT_SECRET=your-client-secret
|
|
# SLACK_ENCRYPTION_KEY=your-32-byte-hex-key # optional, encrypts stored tokens
|
|
|
|
# Microsoft Teams (optional)
|
|
# TEAMS_APP_ID=your-app-id
|
|
# TEAMS_APP_PASSWORD=your-app-password
|
|
|
|
# Google Chat (optional)
|
|
# GOOGLE_CHAT_CREDENTIALS={"type":"service_account",...}
|
|
|
|
# Discord (optional)
|
|
# DISCORD_BOT_TOKEN=your-bot-token
|
|
# DISCORD_PUBLIC_KEY=your-public-key
|
|
|
|
# GitHub (optional) - use PAT OR GitHub App, not both
|
|
# PAT authentication:
|
|
# GITHUB_TOKEN=ghp_xxxxxxxxxxxx
|
|
# GitHub App authentication:
|
|
# GITHUB_APP_ID=123456
|
|
# GITHUB_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----..."
|
|
# GITHUB_INSTALLATION_ID=12345678 # Optional for multi-tenant apps
|
|
# Required for either auth method:
|
|
# GITHUB_WEBHOOK_SECRET=your-webhook-secret
|
|
# GITHUB_BOT_USERNAME=my-bot # or my-bot[bot] for GitHub Apps
|
|
|
|
# Linear (optional) - use API key OR OAuth app, not both
|
|
# API key authentication (simplest):
|
|
# LINEAR_API_KEY=lin_api_xxxxxxxxxxxx
|
|
# OR OAuth app (client credentials - recommended for apps):
|
|
# LINEAR_CLIENT_ID=your-client-id
|
|
# LINEAR_CLIENT_SECRET=your-client-secret
|
|
# Required for either auth method:
|
|
# LINEAR_WEBHOOK_SECRET=your-webhook-secret
|
|
# LINEAR_BOT_USERNAME=my-bot
|
|
|
|
# Redis (for production state persistence)
|
|
# REDIS_URL=redis://localhost:6379
|