Commit Graph

41 Commits

Author SHA1 Message Date
anten-ka
724eeb92d9 fix(v2.4.2): iter2 audit fixes
- bot.py: safe_edit_message now accepts disable_web_page_preview (CRIT: was TypeError in cb_pro_confirm success path)
- bot.py: status display uses template_id field (was 'template' — mismatch with save_gotelegram_config, template never showed)
- bot.py: cb_pro_confirm validates tpl_id against [A-Za-z0-9_-]{1,64} before subprocess (defense-in-depth)
- bot.py: cb_lite_domain validates domain shape
- bot.py: asyncio.Lock _BOT_ACTION_LOCK serializes concurrent change-template/change-lite-domain calls
- install.sh: bot_update_config_field uses shell `date -Iseconds` instead of jq's `now|todate` (jq 1.5 compat for Debian 10)
2026-04-10 13:30:47 +03:00
anten-ka
fc28a1a099 feat(v2.4.2): bot non-interactive install.sh actions
- install.sh: new bot_action_dispatch entry point for --action=X --json CLI invocation from the bot/scripts
- install.sh: bot_action_change_template — reuses download_template + deploy_template_to_nginx, updates config.json template_id
- install.sh: bot_action_change_lite_domain — regenerates telemt TOML with new fake-TLS mask domain, restarts telemt
- bot.py: run_bot_action() subprocess wrapper parses JSON result
- bot.py: cb_pro_confirm now performs real change-template when already in pro mode (fresh install still routes to CLI)
- bot.py: cb_lite_domain now performs real change-lite-domain when already in lite mode
- version -> 2.4.2
2026-04-10 13:19:26 +03:00
anten-ka
0d087831d8 v2.4.0 — internationalization (EN/RU) + custom git templates
- i18n engine (lib/i18n.sh, lib/lang/en.sh, lib/lang/ru.sh)
- first-run language picker, persisted to .language + config.json
- install.sh, common.sh, backup.sh, templates_catalog.sh wired through t()/tf()
- backup.sh preserves .language marker and records language in metadata.json
- custom git template feature (first item in pro template picker)
  * validates HTTPS URLs, rejects shell metachars
  * 100MB size guard, 90s clone timeout
  * auto-detects index.html in dist/public/build/_site/site/docs/out/www
- bot v2.4.0: i18n.py + lang/{en,ru}.json, /lang command, language toggle button
- bot: custom git template via text input with waiter gating
2026-04-10 11:26:02 +03:00
anten-ka
9c084f37ec bugfix: {{NC}} typo, bot TOML v3 parsing, add_secret v3 format
- install.sh: fix {{NC}} -> ${NC} color escape on line 265
- bot.py: fix TOML parsing for telemt v3 [access.users] format
- bot.py: fix telemt config section [server].port instead of [config].listen_port
- telemt_config.sh: fix add_secret_to_config() for v3 format
2026-04-10 00:16:30 +03:00
anten-ka
fedc8f77fe fix: frame alignment, ee-prefix for lite mode, qrencode in deps
- All frame boxes: correct 54-char width with emoji compensation
- Lite mode links now include ee-prefix + mask_host hex (fake-TLS)
- Added qrencode to ensure_deps() so QR codes work after fresh install
- Centralized link generation in generate_proxy_link()
- Fixed bot.py get_proxy_link() for lite mode ee-prefix
2026-04-09 19:24:05 +03:00
anten-ka
b36fb5cf10 v2.3.1: fix frame alignment + bot venv setup 2026-04-09 11:04:23 +03:00
anten-ka
8b4b4892a4 v2.3.1: bot install with spinner waiting for first admin + auto/manual choice 2026-04-09 10:54:06 +03:00
anten-ka
046a08fdb6 v2.3.1: admin management (auto-register first admin, /addadmin, /deladmin, menu button) 2026-04-09 10:46:50 +03:00
anten-ka
a21d2ebea2 v2.3.1: fix QR top margin, use domain instead of IP for pro-mode links 2026-04-09 00:59:42 +03:00
anten-ka
96cbd243d9 v2.3.1: promo only on gotelegram launch (once/day), not after proxy setup; bot promo with 2 hosters 2026-04-08 23:08:04 +03:00
anten-ka
3f136ec8a0 v2.3.1: promo update (2 hosters, QR codes, once-per-day display, 5sec delay) 2026-04-08 22:42:29 +03:00
anten-ka
a24d64d33c fix: stats refresh 3s instead of 1s 2026-04-08 22:31:30 +03:00
anten-ka
52912e0ead fix: stats crash (set -u + CSV header), header box, QR spacing 2026-04-08 22:21:17 +03:00
anten-ka
0dae922d1b fix: main menu 30s refresh, stats submenu flicker-free via tput 2026-04-08 22:01:02 +03:00
anten-ka
6ec2123f83 v2.3.0: Lite/Pro rebrand, submenu system, traffic stats, bot stats 2026-04-08 21:49:03 +03:00
anten-ka
364501d66d v2.2.1: redesign dashboard menu - no right borders, clean layout 2026-04-08 21:05:46 +03:00
anten-ka
f445f7a27e feat: dashboard with live status, proxy link, QR, auto-refresh 30s 2026-04-08 20:52:30 +03:00
anten-ka
6e32ca9d12 fix: telemt v3 config format ([server], [censorship], [access.users]), stealth with dns_overrides 2026-04-08 20:31:50 +03:00
anten-ka
7f81c21d8e stealth: telemt on 0.0.0.0:443, nginx on 127.0.0.1:8443, domain-based proxy link with ee-secret 2026-04-08 20:18:25 +03:00
anten-ka
d6045ace0c fix: stealth mode bind_to 127.0.0.1 + clarify internal port 8443 comments
telemt in stealth mode now binds to 127.0.0.1 instead of 0.0.0.0.
External port 8443 is not exposed - only nginx on 443 is public.
2026-04-07 00:10:13 +03:00
anten-ka
3938a4ca3b Fix: resolve symlink in SCRIPT_DIR for gotelegram command 2026-04-06 22:32:23 +03:00
anten-ka
fee25f191e v2.2.1: unified menu with bot management, grouped sections, telemt download fix, QR cleanup, version bump 2026-04-06 21:40:34 +03:00
anten-ka
4985ec3679 v2.2.1: 11 security fixes (safe_edit_message, IP validation, os-release protection, config_get return codes, spinner stderr, domain check, mode sanitization, var init, XSS escape) 2026-04-06 20:49:31 +03:00
anten-ka
bbd6eab48c fix: check_port try/except + /usr/bin/ss путь (FileNotFoundError)
Made-with: Cursor
2026-03-06 19:47:38 +03:00
anten-ka
938daf7bb7 fix: admin ID при установке бота, check_port с полными путями ss, промо хостинг #2 в боте
Made-with: Cursor
2026-03-06 19:42:52 +03:00
anten-ka
45d9287780 fix: venv без pip — авто-пересоздание, проверка ensurepip, валидация после pip install
Made-with: Cursor
2026-03-06 19:36:13 +03:00
anten-ka
0274f42600 UI: убрана веб-ссылка, QR по tg://, промокоды раздельно по хостерам
Made-with: Cursor
2026-03-06 19:28:30 +03:00
anten-ka
8e69e8fd17 fix: хостинг #2, docker pull перед secret, свой домен (пункт 21)
Made-with: Cursor
2026-03-06 19:19:01 +03:00
anten-ka
4c78012900 QR-код по https://t.me/proxy ссылке (камера телефона распознаёт)
Made-with: Cursor
2026-03-06 19:07:11 +03:00
anten-ka
ea6400540c Пункт 7: полное меню удаления (контейнер или контейнер+Docker), 2 подтверждения
Made-with: Cursor
2026-03-06 19:04:02 +03:00
anten-ka
11d9cf6772 UI: спиннер, прогресс-бар и галочки на каждом шаге установки
Made-with: Cursor
2026-03-06 18:54:05 +03:00
anten-ka
8320d4dd06 fix: убран -t 1.0.0.1 (mtg парсил как --timeout, контейнер падал)
Made-with: Cursor
2026-03-06 18:50:49 +03:00
anten-ka
5fce2969da fix: порт дублировался (443443) из-за TCP+UDP биндингов — берём только первый
Made-with: Cursor
2026-03-06 18:34:03 +03:00
anten-ka
d601c6f61c v3: SSH-меню как kaskad, MTProxy из bash, бот — отдельный пункт меню, проверка портов
Made-with: Cursor
2026-03-06 16:08:03 +03:00
anten-ka
af8bcca822 install.sh: авто-установка python3.X-venv по версии Python на сервере
Made-with: Cursor
2026-03-06 15:52:38 +03:00
anten-ka
9b9ea3e1b5 install.sh: убран set -e, добавлены проверки и вывод на каждом шаге
Made-with: Cursor
2026-03-06 15:50:29 +03:00
anten-ka
1afb7c33cd install.sh: всё в одном файле, ключ нужен только один раз в curl
Made-with: Cursor
2026-03-06 15:46:41 +03:00
anten-ka
a438b361e1 v2: кнопочное меню, проверка портов, совместимость Docker, кнопка Поделиться, TCP+UDP звонки, auto-install Docker
Made-with: Cursor
2026-03-06 15:38:48 +03:00
anten-ka
1f38f068f7 install.sh: при токене только git clone (raw не работает для приватного репо), установка git
Made-with: Cursor
2026-03-06 15:27:36 +03:00
anten-ka
687c2da2df install.sh: токен можно передать аргументом gotelegram ТОКЕН
Made-with: Cursor
2026-03-06 15:24:36 +03:00
anten-ka
54bdf6b0d5 install.sh в формате kaskad, INSTALL_LINK, готовая однострочная установка
Made-with: Cursor
2026-03-06 15:11:39 +03:00