TelegramAuth + TelegramAuthBot + WatchTogether; README/AGENT

- mods/TelegramAuth, mods/TelegramAuthBot, mods/WatchTogether: копии из
  образа с enable: true (правило 1), секции в config/init.conf
- TelegramAuth в API-режиме (enable: false -> accsdb/гейт не поднимается),
  TelegramAuthBot: бот @GatusMonBot, long polling
- WatchTogether: customPlugins watchtogether.js, relay /wt/c/
- README: секция про SQLite/volume (первый запуск), таблица модулей,
  состояние Tg-notify и TelegramAuth, раздел WatchTogether
- AGENT: правило 10 дополнено секретами init.conf, §12 переписан,
  добавлен §13 WatchTogether, список mods/ в §1
- в git bot_token и mutations_api_secret оставлены пустыми (правило 10),
  реальные значения только в рабочем файле на сервере
This commit is contained in:
2026-10-04 15:03:00 +00:00
parent 67e5713064
commit b6acef01ef
44 changed files with 13692 additions and 14 deletions
+60 -2
View File
@@ -33,7 +33,16 @@
"backup": true
},
"customPlugins": [
{ "url": "{localhost}/tg-notify.js", "status": 1, "name": "Tg-notify" }
{
"url": "{localhost}/tg-notify.js",
"status": 1,
"name": "Tg-notify"
},
{
"url": "{localhost}/watchtogether.js",
"status": 1,
"name": "WatchTogether"
}
]
},
"chromium": {
@@ -56,5 +65,54 @@
"history": {
"enable": false
}
},
"TelegramAuth": {
"enable": false,
"data_dir": "database/tgauth",
"legacy_import_path": "database/legacy_tgauth",
"enable_import": true,
"enable_cleanup": true,
"mutations_api_secret": "",
"owner_telegram_ids": [
143672
],
"auto_provision_users": true,
"auto_provision_role": "user",
"auto_provision_lang": "ru",
"auto_provision_expires_days": 0,
"auto_provision_activate_immediately": false,
"accsdb_sync_group_admin": 100,
"accsdb_sync_group_user": 0,
"max_active_devices_per_user": 5,
"limit_map": [
{
"pattern": "^/tg/auth",
"map": {
"limit": 25,
"second": 1
}
}
]
},
"TelegramAuthBot": {
"enable": true,
"bot_token": "",
"lampac_base_url": "http://127.0.0.1:80",
"request_timeout_sec": 10,
"service_display_name": "Lampac NextGen",
"mutations_api_secret": "",
"admin_chat_ids": [],
"owner_telegram_ids": [
143672
],
"notify_admins_on_pending_provision": true
},
"WatchTogether": {
"enable": true,
"allow_anonymous": true,
"relay_max_channels": 500,
"relay_max_clients_per_channel": 32,
"gc_empty_timeout_minutes": 30,
"gc_max_lifetime_hours": 12
}
}
}