telegram-s3-uploader/.env.example

31 lines
647 B
Plaintext

# Telegram
API_ID=123456
API_HASH=your_api_hash_here
BOT_TOKEN=your_bot_token_here
# Allowed Telegram user IDs (comma-separated)
ALLOWED_USERS=123456789
# S3 / S3-Compatible
S3_ENDPOINT=
S3_REGION=us-east-1
S3_ACCESS_KEY=your_access_key
S3_SECRET_KEY=your_secret_key
S3_BUCKET=your_bucket_name
# Return presigned download link after upload
ENABLE_PRESIGNED_URL=true
# Presigned URL expiration (seconds)
PRESIGNED_EXPIRE_SECONDS=3600
# S3 upload tuning (per-file multipart)
S3_MAX_CONCURRENCY=4
# Optional advanced multipart tuning
S3_MULTIPART_THRESHOLD_MB=100
S3_MULTIPART_CHUNK_MB=50
# Upload queue limits (global)
MAX_PARALLEL_UPLOADS=3