mirror of
https://github.com/andrey271192/keenetic-dns-routes.git
synced 2026-09-20 14:42:01 +00:00
UI: «⇄ Тоннель» button next to «Тест» — opens modal with autossh
install command for the router and an auto-applied localhost RCI URL.
Backend: GET /api/routers/{id}/tunnel-cmd allocates a free port
(starts at TUNNEL_PORT_START) and returns the shell command;
DELETE /api/routers/{id}/tunnel clears the assignment.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
18 lines
622 B
Plaintext
18 lines
622 B
Plaintext
HOST=0.0.0.0
|
||
PORT=8001
|
||
|
||
# Вход на веб-страницу сервиса (:8001). Если пусто — admin
|
||
ADMIN_PASSWORD=change-me
|
||
|
||
# Дефолт для Keenetic API, если у роутера не заданы поля логин/пароль и нет user:pass@ в URL
|
||
KEENETIC_LOGIN=admin
|
||
KEENETIC_PASSWORD=
|
||
|
||
# Reverse SSH tunnel — для роутеров без белого IP
|
||
# Если эти поля заполнены, в UI появляется кнопка «⇄ Тоннель» рядом с «Тест»
|
||
VPS_SSH_HOST=
|
||
VPS_SSH_PORT=22
|
||
VPS_SSH_USER=root
|
||
VPS_SSH_PASS=
|
||
TUNNEL_PORT_START=20100
|