fix: xterm.js CDN → jsdelivr, port 8000 → 7272, custom port in installer

- Switch xterm.js from cdnjs (404) to jsdelivr (working)
- Add xterm-addon-fit for auto-resize terminal
- Change default port from 8000 to 7272 everywhere
- Install script: --port flag for custom port selection
- sed-based port injection into systemd service at install time

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Андрей Бобырев
2026-05-20 12:38:01 +03:00
parent dbe2faf7dc
commit fab7ed7912
7 changed files with 50 additions and 13 deletions

View File

@@ -8,7 +8,7 @@ User=root
WorkingDirectory=/opt/vps-monitoring
Environment=TELEGRAM_BOT_TOKEN=8815672362:AAFGwxrWjSsjGuc9iBpX0aupKRoKkviS2NA
Environment=TELEGRAM_CHAT_ID=371010834
ExecStart=/opt/vps-monitoring/venv/bin/uvicorn server.main:app --host 0.0.0.0 --port 8000
ExecStart=/opt/vps-monitoring/venv/bin/uvicorn server.main:app --host 0.0.0.0 --port 7272
Restart=always
RestartSec=5