-
Notifications
You must be signed in to change notification settings - Fork 0
Home EN
loopy-iri edited this page Jun 25, 2026
·
1 revision
🇬🇧 English · 🇮🇷 فارسی
This wiki explains how the system works, what each role does, and the step-by-step install/connect/use flow.
A node-reselling system based on a fork of PasarGuard/node:
- NodeAgent (repo): a multi-tenant node. One shared Xray serves many customers (tenants) with their own users; quota/expiry are enforced locally.
- NodePanel (repo): the central control panel that manages many nodes, customers, plans and subscriptions and exposes usage to a sales bot.
┌──────────┐ Bearer API ┌───────────┐ master key (HTTPS :8090) ┌──────────────┐
│ sales bot │ ───────────────▶ │ NodePanel │ ─────────────────────────▶ │ NodeAgent │
│ (wallet) │ ◀─ webhook(HMAC) │ (fleet mgmt)│ │ (shared Xray) │
└──────────┘ └───────────┘ └──────┬───────┘
customer's PasarGuard ── gRPC (:62050) ─────────┘
(creates end users)
- The panel has no money logic. Wallet/pricing/payment live in the external sales bot; the panel only manages bytes/time/status and reports usage/overage.
- Tenants are separated by their users; credential uniqueness is enforced node-wide.
- Quota/expiry → that customer's users are removed from the core and its key is rejected (suspend ≠ delete; renewal restores data).
| Role | Who | What they do |
|---|---|---|
| Operator | You (service owner) | Installs and manages the panel and nodes, creates plans, hands out subscriptions. |
| Customer | Node buyer | Connects to the node with their own PasarGuard panel and the customer key, creates end users. |
| End user | The customer's customer | Gets a subscription link (vless/...) from the customer. |
| Sales bot | External service | Uses the panel API to create subscriptions and webhooks for usage/overage. |
- Operator: Install the panel → Install a node → Add a node & sell
- Configure the node's Xray core (seller): Configure the core
- Customer: Connect from PasarGuard
- Personal use alongside selling: Personal use
- Maintenance/updates: Update & maintenance
- Problems: Troubleshooting
- Bot developer: API & Webhooks
اپراتور
- ۱) نصب پنل
- ۲) نصب نود
- ۳) افزودن نود و فروش
- تنظیم هستهی نود (Xray)
- استفادهی شخصی + فروش
- آپدیت و نگهداری
- عیبیابی
مشتری
توسعهدهنده
Operator
- 1) Install the panel
- 2) Install a node
- 3) Add a node & sell
- Configure the node core (Xray)
- Personal use + selling
- Update & maintenance
- Troubleshooting
Customer
Developer