feat(api, web): implement short install link functionality for agents
- Added new API endpoints for creating, retrieving, and revoking install links for agents. - Enhanced the agent installation process with short links accessible via `/agent-install/:id` and `/:slug`. - Updated the README and documentation to reflect the new installation method and usage instructions. - Refactored relevant components in the web application to support the new install link feature. - Improved error handling and validation for install link operations. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
+15
-1
@@ -1,6 +1,20 @@
|
||||
# Agents
|
||||
|
||||
## Linux
|
||||
## Short install (рекомендуется)
|
||||
|
||||
В UI `/agents` → **Добавить агента** создаёт install-ссылку. На хосте:
|
||||
|
||||
```bash
|
||||
curl -fsSL https://<cp>/agent-install/<id> | bash
|
||||
# или короткий slug:
|
||||
curl -fsSL https://<cp>/<slug> | bash
|
||||
```
|
||||
|
||||
Скрипт уже содержит `EVOFW_CP_URL`, `EVOFW_SEED`, `EVOFW_CLIENT_NAME`. После enroll одобрите агента во вкладке Pending.
|
||||
|
||||
API (auth): `POST /api/v1/install-links` `{ "name": "web-01", "platform": "linux" }`.
|
||||
|
||||
## Linux (legacy one-liner)
|
||||
|
||||
```bash
|
||||
curl -fsSL https://<cp>/v1/agent/install.sh | \
|
||||
|
||||
Reference in New Issue
Block a user