-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
49 lines (40 loc) · 1.03 KB
/
Copy pathenv.example
File metadata and controls
49 lines (40 loc) · 1.03 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
46
47
48
49
# Telegram Bot Configuration
BOT_TOKEN=your_telegram_bot_token_here
ADMIN_ID=123456789,987654321
# Database Configuration
POSTGRES_URL=postgresql://user:password@db:5432/botdb
POSTGRES_HOST=db
POSTGRES_PORT=5432
POSTGRES_USER=user
POSTGRES_PASSWORD=password
POSTGRES_DB=botdb
# Redis Configuration
REDIS_URL=redis://redis:6379/0
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_DB=0
# Bot Mode (webhook or polling)
BOT_MODE=webhook
WEBHOOK_URL=https://yourdomain.com/webhook
WEBHOOK_PATH=/webhook
WEBHOOK_SECRET=your_webhook_secret
# Server Configuration
HOST=0.0.0.0
PORT=8000
DEBUG=false
# yt-dlp Configuration
YT_DLP_OPTS=--no-warnings -f best
MAX_FILE_SIZE=500000000 # 500MB in bytes
DOWNLOAD_TIMEOUT=300 # 5 minutes
# Rate Limiting
RATE_LIMIT_REQUESTS=10 # requests per minute
RATE_LIMIT_WINDOW=60 # seconds
# File Management
TEMP_DIR=/tmp/savevideobot
FILE_CLEANUP_INTERVAL=900 # 15 minutes in seconds
# Monitoring
ENABLE_METRICS=true
METRICS_PORT=9090
# Logging
LOG_LEVEL=INFO
LOG_FORMAT=json