Add Telegram Bot internal API configuration for Windows deployment
Fix issue where backend cannot communicate with Telegram bot service to save authentication codes during account linking flow. This caused "link invalid or expired" errors when users tried to link Telegram accounts. Changes: - Add TELEGRAM_BOT_INTERNAL_API environment variable to backend .env.example (defaults to http://localhost:8002 for local/Windows deployments) - Update CLAUDE.md with Telegram Bot integration requirements for Windows - Add comprehensive troubleshooting guide for Windows deployment at deployment/windows/docs/TELEGRAM_BOT_TROUBLESHOOTING.md The troubleshooting guide includes: - Diagnostic steps to verify service health and connectivity - Common issues and solutions (port conflicts, firewall, wrong bot token) - PowerShell commands for Windows Server administration - Verification steps for end-to-end testing This ensures proper backend-to-telegram-bot communication for the auth code linking workflow in production Windows deployments. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
11
CLAUDE.md
11
CLAUDE.md
@@ -70,8 +70,13 @@ ORACLE_SID=ROA
|
||||
JWT_SECRET_KEY=your_secret_key
|
||||
JWT_ALGORITHM=HS256
|
||||
JWT_EXPIRE_MINUTES=30
|
||||
|
||||
# Telegram Bot Integration
|
||||
TELEGRAM_BOT_INTERNAL_API=http://localhost:8002
|
||||
```
|
||||
|
||||
**IMPORTANT for Windows Deployment:** Ensure `TELEGRAM_BOT_INTERNAL_API` is set in backend `.env` file. This allows the backend to communicate with the Telegram bot's internal API for auth code management. See `deployment/windows/docs/TELEGRAM_BOT_TROUBLESHOOTING.md` for diagnostics.
|
||||
|
||||
## 🛠️ Development Commands
|
||||
|
||||
### Quick Start (All Services)
|
||||
@@ -395,9 +400,15 @@ Get-Website ROA2WEB
|
||||
**Windows Deployment Architecture:**
|
||||
- **IIS Web Server**: Serves frontend static files (port 80/443)
|
||||
- **Windows Service**: FastAPI backend via NSSM (port 8000)
|
||||
- **Windows Service**: Telegram Bot via NSSM (internal API port 8002)
|
||||
- **Direct Oracle Connection**: No SSH tunnel required
|
||||
- **URL Rewrite Module**: Reverse proxy for `/api/*` routes
|
||||
|
||||
**Telegram Bot Integration:**
|
||||
- Backend must have `TELEGRAM_BOT_INTERNAL_API=http://localhost:8002` in `.env`
|
||||
- Telegram Bot service must be running before generating linking codes
|
||||
- Troubleshooting: See `deployment/windows/docs/TELEGRAM_BOT_TROUBLESHOOTING.md`
|
||||
|
||||
See `deployment/windows/docs/WINDOWS_DEPLOYMENT.md` for complete Windows deployment guide.
|
||||
|
||||
## 📝 Common Development Tasks
|
||||
|
||||
Reference in New Issue
Block a user