-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathsample.env
More file actions
26 lines (21 loc) · 719 Bytes
/
sample.env
File metadata and controls
26 lines (21 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# --- Telegram ---
TELEGRAM_TOKEN=123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
# Public URL where the bot is reachable (no trailing slash)
TELEGRAM_WEBHOOK_URL=https://your-domain.com
# --- GitHub OAuth ---
# From "Client secrets" section
GITHUB_CLIENT_ID=Iv1.xyz...
GITHUB_CLIENT_SECRET=01234...
# --- Webhooks ---
# Generate a strong random string (e.g., openssl rand -hex 20)
# This acts as a shared secret for validating payloads
GITHUB_WEBHOOK_SECRET=your_webhook_secret_here
# --- Database ---
MONGODB_URI=mongodb://mongo:27017
DATABASE_NAME=github_bot
# --- Security ---
# Random 32-byte string for encrypting OAuth tokens in DB
# Generate with: openssl rand -hex 32
ENCRYPTION_KEY=
# --- Server ---
PORT=8080