chore: интерфесы бота

This commit is contained in:
protokey committed 2026-09-24 17:33:10 +04:00
1 parent 5f53cadf89
commit 6d322f36a9
42 files changed
+1731 -111

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
from .runner import Result
from .server import Server
class XuiPanel(Server):
"""Сервер с панелью 3x-ui."""
def install(self, username: str, password: str, panel_port: int, web_base_path: str, domain: str = '') -> Result:
"""Ставит панель и открывает порты 80 (acme), 443 и panel_port. Возвращает data: {'api_token': ...}."""
return self.run(
'xui',
username=username,
password=password,
panel_port=panel_port,
web_base_path=web_base_path,
domain=domain,
)