# LittleShop Multi-Bot Environment Configuration Template # Copy this file to .env.multi and configure your values # ======================================== # SHARED CONFIGURATION (All Bots) # ======================================== # LittleShop API Configuration LITTLESHOP_API_URL=http://localhost:8080 # For remote API: https://api.yourdomain.com # For Docker host: http://host.docker.internal:8080 # For same network: http://littleshop-api:8080 LITTLESHOP_USERNAME=admin LITTLESHOP_PASSWORD=admin # Redis Configuration (Optional - for shared caching) REDIS_ENABLED=false REDIS_PASSWORD=your_secure_redis_password_here # ======================================== # SUPPORT BOT CONFIGURATION # ======================================== # Telegram Bot Token from @BotFather SUPPORT_BOT_TOKEN= # Admin Chat ID for notifications (get from @userinfobot) SUPPORT_ADMIN_CHAT_ID= # Bot API Key from LittleShop Admin Panel SUPPORT_BOT_API_KEY= # 32-character encryption key for database SUPPORT_DB_ENCRYPTION_KEY=change_this_to_32_char_secure_key # ======================================== # SALES & MARKETING BOT CONFIGURATION # ======================================== # Telegram Bot Token from @BotFather SALES_BOT_TOKEN= # Admin Chat ID for notifications SALES_ADMIN_CHAT_ID= # Bot API Key from LittleShop Admin Panel SALES_BOT_API_KEY= # 32-character encryption key for database SALES_DB_ENCRYPTION_KEY=change_this_to_32_char_secure_key # ======================================== # VIP/PREMIUM BOT CONFIGURATION # ======================================== # Telegram Bot Token from @BotFather VIP_BOT_TOKEN= # Admin Chat ID for notifications VIP_ADMIN_CHAT_ID= # Bot API Key from LittleShop Admin Panel VIP_BOT_API_KEY= # 32-character encryption key for database VIP_DB_ENCRYPTION_KEY=change_this_to_32_char_secure_key # Enhanced privacy for VIP customers VIP_ENABLE_TOR=false # ======================================== # EU REGION BOT CONFIGURATION (Optional) # ======================================== # Telegram Bot Token from @BotFather EU_BOT_TOKEN= # Admin Chat ID for notifications EU_ADMIN_CHAT_ID= # Bot API Key from LittleShop Admin Panel EU_BOT_API_KEY= # 32-character encryption key for database EU_DB_ENCRYPTION_KEY=change_this_to_32_char_secure_key # Optional: Different API endpoint for EU region EU_API_URL=${LITTLESHOP_API_URL} # ======================================== # DEPLOYMENT NOTES # ======================================== # To generate secure encryption keys: # openssl rand -hex 16 # Generates 32-character hex string # or # cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 # To get your Telegram Chat ID: # 1. Message @userinfobot on Telegram # 2. It will reply with your user info including chat ID # To create bot tokens: # 1. Message @BotFather on Telegram # 2. Send /newbot and follow instructions # 3. Copy the token provided # To get Bot API Keys: # 1. Login to LittleShop Admin Panel # 2. Go to /Admin/Bots/Wizard # 3. Create bot and copy the API key # ======================================== # DOCKER DEPLOYMENT COMMANDS # ======================================== # Deploy all bots: # docker-compose -f docker-compose.multi.yml --env-file .env.multi up -d # Deploy specific bot: # docker-compose -f docker-compose.multi.yml --env-file .env.multi up -d bot-support # View logs: # docker-compose -f docker-compose.multi.yml logs -f bot-support # Stop all bots: # docker-compose -f docker-compose.multi.yml down # Remove all data (CAUTION): # docker-compose -f docker-compose.multi.yml down -v