06112602ec
Version the NestJS TDLib gateway with Docker deployment, migrations, automated tests and platform integration documentation while excluding all account sessions, credentials, runtime databases and backups.
47 lines
776 B
Bash
47 lines
776 B
Bash
# Application
|
|
NODE_ENV=development
|
|
PORT=3000
|
|
APP_NAME=TelegramUserGateway
|
|
CORS_ORIGINS=
|
|
|
|
# PostgreSQL
|
|
DB_HOST=localhost
|
|
DB_PORT=5432
|
|
DB_USERNAME=postgres
|
|
DB_PASSWORD=postgres
|
|
DB_DATABASE=telegram_gateway
|
|
DB_SYNCHRONIZE=false
|
|
DB_MIGRATIONS_RUN=true
|
|
|
|
# Redis
|
|
REDIS_HOST=localhost
|
|
REDIS_PORT=6379
|
|
REDIS_PASSWORD=
|
|
REDIS_DB=0
|
|
REDIS_ENABLED=true
|
|
|
|
# JWT
|
|
JWT_SECRET=change-me-to-a-secure-random-string
|
|
JWT_EXPIRATION=24h
|
|
|
|
# TDLib
|
|
TDLIB_PATH=/usr/local/lib/libtdjson.so
|
|
TG_API_ID=0
|
|
TG_API_HASH=your_api_hash_here
|
|
|
|
# Rate Limiting
|
|
RATE_LIMIT_DEFAULT_TTL=60000
|
|
RATE_LIMIT_DEFAULT_LIMIT=30
|
|
|
|
# Webhook
|
|
WEBHOOK_MAX_RETRIES=8
|
|
WEBHOOK_RETRY_BACKOFF_BASE=5000
|
|
WEBHOOK_TIMEOUT=10000
|
|
|
|
# File Storage
|
|
FILE_STORAGE_PATH=./uploads
|
|
FILE_MAX_SIZE=209715200
|
|
|
|
# Admin
|
|
ADMIN_API_KEY=change-me-admin-key
|