Features: - Complete Ubuntu dependency resolution in requirements.txt - Safe Docker deployment that preserves existing bash startup setups - Isolated Docker environment (docker-ultroid/) with different ports - Automatic detection of existing bot configurations - Session generation scripts for Docker deployment - Health check and diagnostic tools - Comprehensive documentation and deployment guides Safety: - Detects existing 'bash startup' method and creates isolated environment - Uses different ports (8081) to avoid conflicts - Separate volumes and configs for Docker deployment - Both bash startup and Docker can run side by side - No interference with existing bot setups Files added/updated: - requirements.txt (all missing dependencies) - Docker setup (Dockerfile, docker-compose.yml, .env.sample) - Deployment scripts (ubuntu_setup.sh, docker-deploy.sh, quick-start.sh) - Safety scripts (safe-docker-setup.sh with isolation logic) - Management tools (Makefile, health_check.sh, generate-session.sh) - Documentation (SAFE_DOCKER_GUIDE.md, DOCKER_DEPLOYMENT.md, etc.) Ready for production Ubuntu server deployment!
98 lines
1.7 KiB
Plaintext
98 lines
1.7 KiB
Plaintext
# Ultroid Environment Configuration
|
|
# Copy this file to .env and fill in your values
|
|
# Don't use quotes( " and ' )
|
|
|
|
# ===== REQUIRED VARIABLES =====
|
|
|
|
# Session String - Get from @SessionGeneratorBot or sessiongen script
|
|
SESSION=
|
|
|
|
# Telegram API Credentials - Get from https://my.telegram.org/apps
|
|
API_ID=
|
|
API_HASH=
|
|
|
|
# ===== DATABASE CONFIGURATION (Choose ONE) =====
|
|
|
|
# Option 1: Redis (Recommended)
|
|
REDIS_URI=redis://redis:6379
|
|
REDIS_PASSWORD=ultroid123
|
|
|
|
# Option 2: MongoDB
|
|
# MONGO_URI=mongodb://ultroid:ultroid123@mongodb:27017/ultroid?authSource=admin
|
|
|
|
# Option 3: PostgreSQL (ElephantSQL)
|
|
# DATABASE_URL=
|
|
|
|
# ===== OPTIONAL VARIABLES =====
|
|
|
|
# Bot Token (Optional - for assistant bot)
|
|
BOT_TOKEN=
|
|
|
|
# Owner/Admin User ID
|
|
OWNER_ID=
|
|
|
|
# Log Channel ID (for logging)
|
|
LOG_CHANNEL=
|
|
|
|
# ===== MODE CONFIGURATION =====
|
|
|
|
# Bot Mode (enable assistant bot)
|
|
BOT_MODE=True
|
|
|
|
# Dual Mode (run both userbot and assistant)
|
|
DUAL_MODE=True
|
|
|
|
# ===== HEROKU CONFIGURATION (Optional) =====
|
|
|
|
# Heroku API Key (for updates)
|
|
HEROKU_API_KEY=
|
|
|
|
# Heroku App Name
|
|
HEROKU_APP_NAME=
|
|
|
|
# ===== ADDITIONAL SERVICES (Optional) =====
|
|
|
|
# Okteto Token (for Okteto deployment)
|
|
OKTETO_TOKEN=
|
|
|
|
# Custom Bot Name
|
|
BOT_NAME=Ultroid
|
|
|
|
# Time Zone
|
|
TZ=Asia/Kolkata
|
|
|
|
# ===== DATABASE CREDENTIALS (for docker-compose) =====
|
|
|
|
# MongoDB Admin Credentials
|
|
MONGO_USER=ultroid
|
|
MONGO_PASSWORD=ultroid123
|
|
|
|
# ===== ADDITIONAL FEATURES =====
|
|
|
|
# Spam Watch API (Optional)
|
|
SPAMWATCH_API=
|
|
|
|
# OpenWeatherMap API (for weather commands)
|
|
OPENWEATHER_API=
|
|
|
|
# Remove.bg API (for background removal)
|
|
REMOVE_BG_API=
|
|
|
|
# Telegraph Token (auto-generated)
|
|
TELEGRAPH_TOKEN=
|
|
|
|
# PM Security
|
|
PM_SECURITY=True
|
|
|
|
# Max Flood In PMs
|
|
MAX_FLOOD_IN_PMS=3
|
|
|
|
# Workers (for concurrent operations)
|
|
WORKERS=8
|
|
|
|
# Auto Updates
|
|
AUTO_UPDATE=True
|
|
|
|
# Load All Addons
|
|
LOAD_ADDONS=True
|