-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
33 lines (24 loc) · 947 Bytes
/
.env.example
File metadata and controls
33 lines (24 loc) · 947 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
27
28
29
30
31
32
33
# FilesLink Environment Configuration
# Copy this file to .env and update with your values
# Required: Get from @BotFather on Telegram
BOT_TOKEN=123456789:abcdefghijklmnop
# Required: Your private channel ID (get from @userinfobot)
STORAGE_CHANNEL_ID=-1001234567890
# Server Configuration
SERVER_PORT=8080
APP_FILE_DOMAIN=http://localhost:8080/files
# Telegram API (use official API for simplicity)
TELEGRAM_API_URL=https://api.telegram.org
TELEGRAM_LOCAL=false
# FastTelethon Configuration (Required for large files >20MB)
# Get API_ID and API_HASH from https://my.telegram.org/apps
TELEGRAM_API_ID=your_api_id_from_my_telegram_org
TELEGRAM_API_HASH=your_api_hash_from_my_telegram_org
TELEGRAM_PHONE=+1234567890
FASTTELETHON_URL=http://fasttelethon:8001
# Logging
RUST_LOG=info
# CLI Communication
FILESLINK_PIPE_PATH=/tmp/fileslink.pipe
# Optional: Enable file listing endpoint (not recommended for production)
ENABLE_FILES_ROUTE=false