docsfeat(warp): clarify optional install + add uninstall command

README/panel-guide/UI explain WARP is not required; document uninstall.
Add warp-amnezia.sh uninstall to strip warp conf, rules, and start.sh block.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Андрей Бобырев
2026-05-14 19:53:14 +03:00
parent 7c6a65c284
commit 50558aff63
7 changed files with 74 additions and 17 deletions

View File

@@ -1700,7 +1700,7 @@ app.post("/api/warp/start", requireAuth, async (req, res) => {
if (!(await warpFileExists(rt, rt.profile.warpConf))) {
return res.status(400).json({
error:
"WARP не установлен (нет warp.conf). Один раз выполните на хосте: scripts/warp-amnezia.sh install — см. README.",
"WARP не установлен (нет warp.conf). На хосте: scripts/warp-amnezia.sh install — или игнорируйте раздел, если WARP не нужен (см. README).",
});
}
try {
@@ -1732,7 +1732,7 @@ app.post("/api/warp/routing", requireAuth, async (req, res) => {
if (!(await warpFileExists(rt, rt.profile.warpConf))) {
return res.status(400).json({
error:
"WARP не установлен. Сначала scripts/warp-amnezia.sh install на хосте VPS (root).",
"WARP не установлен. Сначала scripts/warp-amnezia.sh install на хосте VPS (root), либо не используйте этот раздел.",
});
}
const raw = req.body?.selectedAllowedIps;