Files
lampac/config/init.conf
T
prodik b6acef01ef 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),
  реальные значения только в рабочем файле на сервере
2026-10-04 15:03:00 +00:00

118 lines
2.4 KiB
Plaintext

{
"listen": {
"version": true,
"ip": "0.0.0.0",
"port": 80,
"scheme": "http",
"localhost": "127.0.0.1"
},
"BaseModule": {
"SkipModules": []
},
"Tracks": {
"enable": true
},
"AdminPanel": {
"enable": true
},
"TorrServer": {
"enable": true,
"tsport": 9085,
"releases": "latest"
},
"TelegramBot": {
"enable": true,
"bot_token": "",
"lampac_host": "http://127.0.0.1:80"
},
"LampaWeb": {
"initPlugins": {
"dlna": true,
"tracks": true,
"sync": true,
"backup": true
},
"customPlugins": [
{
"url": "{localhost}/tg-notify.js",
"status": 1,
"name": "Tg-notify"
},
{
"url": "{localhost}/watchtogether.js",
"status": 1,
"name": "WatchTogether"
}
]
},
"chromium": {
"enable": true,
"executablePath": "/usr/bin/chromium"
},
"openstat": {
"enable": true
},
"online": {
"name": "Lampac NextGen",
"spiderName": "Lampac NextGen",
"version": true,
"btn_priority_forced": true
},
"sisi": {
"lgbt": false,
"spider": false,
"NextHUB": true,
"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
}
}