-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.env.example
More file actions
45 lines (37 loc) · 2.3 KB
/
Copy path.env.example
File metadata and controls
45 lines (37 loc) · 2.3 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# ─────────────────────────────────────────────────────────
# PixEdge v2 — Environment Variables
# ─────────────────────────────────────────────────────────
# ── Required: Telegram Bot (used for bot messages + v1 fallback uploads) ──────
TELEGRAM_BOT_TOKEN=your_bot_token_here
TELEGRAM_CHAT_ID=your_storage_channel_id
TELEGRAM_LOG_CHANNEL_ID=your_log_channel_id # optional, defaults to TELEGRAM_CHAT_ID
# ── Required: App URL ────────────────────────────────────────────────────────
NEXT_PUBLIC_BASE_URL=http://localhost:3000
# ── Required: Upstash Redis ──────────────────────────────────────────────────
UPSTASH_REDIS_REST_URL=
UPSTASH_REDIS_REST_TOKEN=
# ── Required: NextAuth ───────────────────────────────────────────────────────
NEXTAUTH_SECRET="change_this_to_a_random_32_char_string"
NEXTAUTH_URL="http://localhost:3000"
# ── Optional: OAuth providers ────────────────────────────────────────────────
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GITHUB_ID=
GITHUB_SECRET=
# ── Optional: MTProto / gramjs (v2 — enables up to 2 GB uploads) ─────────────
#
# HOW TO GET THESE:
# 1. Go to https://my.telegram.org/apps and create an app.
# Copy the "App api_id" and "App api_hash".
# 2. Run: npm run generate:session
# Follow the prompts (phone number + OTP). Copy the printed string.
# 3. Paste all three values below.
#
# ⚠️ Keep TELEGRAM_SESSION_STRING secret. Never commit it to git.
#
TELEGRAM_API_ID=
TELEGRAM_API_HASH=
TELEGRAM_SESSION_STRING=
# Max upload size in MB when MTProto is active (default: 2000 = 2 GB)
# Lower this if your server has limited RAM (e.g. 500 for a 1 GB VPS).
MAX_UPLOAD_SIZE_MB=2000